"The Elephant-faced then, addressing Devi, said, 'Command, O lovely goddess! what shall I now do?' Thou didst reply, 'Oppose obstacles to men's visiting Somnath, and entice them to give up such a purpose by the allurements of wives, children, possessions, and wealth. But from those who propitiate thee with the following hymn, do thou remove all obstacles, and enable them to obtain the favour of Siva, by worshipping his shrine at Somnath:--"Om, I praise thee, O lord of difficulties! The beloved spouse of Siddhi (knowledge) and Buddhi (understanding); Ganapati, invincible, and the giver of victory; the opposer of obstacles to the success of men who do not worship thee! I praise thee, O Ganesa! The dreadful son of Uma, but firm and easily propitiated! O Vinayaka! I praise thee! O elephant-faced, who didst formerly protect the gods, and accomplish their wishes, I praise thee!" Thus,' continued Parvati, shalt thou be praised and worshipped.' And whoever previously invokes the god Vinayaka, no difficulties shall impede the attainment of his purposed
object, and a most beneficial result shall he derive from sacrifices, pilgrimages, and all other devotional acts."
The following extract from the "Ganapati Upanishad" [**] is a specimen of the addresses to Ganesa used by the Ganapatyas: [*+] "Praise to thee, O Ganesa! Thou art manifestly the truth; thou art undoubtedly the Creator, Preserver, and Destroyer, the Supreme Brahma, the eternal Spirit. I speak what is right and true; preserve me therefore, when speaking, listening, giving, possessing, teaching, learning; continually protect me everywhere. By thee was this universe manifested; for thou art earth, water, fire, air and ether. Thou art Brahma, Vishnu, and Rudra. We acknowledge thy divinity, O Ekadanta! and meditate on thy countenance; enlighten, therefore, our understanding. He who continually meditates upon thy divine form, conceiving it to be with one tooth, four hands, bearing a rat on thy banner, of a red hue, with a large belly, anointed with red perfumes, arrayed in red garments, worshipped with offerings of red flowers, abounding in compassion, the cause of this universe, imperishable, unproduced and unaffected by creation, becomes the most excellent of Yogis. Praise, therefore, be to thee, O Ganapati. Whoever meditates upon this figure of the 'Atharva Siras' (the name of the Upanishad of which the Ganapati forms a part) never will be impeded by difficulties, will be liberated from the five great sins, and all lesser ones; and will acquire riches, the objects of his desires, virtue and final beatitude."
Ganesa is said to have written the Mahabharata at Vyasa's dictation. In the Adiparva of that book it is declared that when the sage was about to compose it