Authenticity-aware references
Vedic
The mantra is Vedic and addressed in its original context to Brahmanaspati/Brihaspati; later Ganesha worship often uses it devotionally for Ganapati.
Needs editorial review