Religious Activities Before Islam:
Not much is known about the religious practices of Muhammad (Peace Be Upon Him), until he was thirty-five years old, except that he had never worshipped idols. This is substantiated by all his biographers. It may be stated that there were a few others in Mecca, who had likewise revolted against the senseless practice of paganism, although conserving their fidelity to the Ka'bah as the house dedicated to the One God by its builder Abraham.
After thirty-five years of age Muhammad (Peace Be Upon Him), became more and more absorbed in spiritual meditations. Like his grandfather, he used to retire during the whole month of Ramadan to a cave in "Jabal-an-Nur" (mountain of light). The cave is called "Ghar-i-Hira" (cave of research). There he prayed, meditated, and shared his meager provisions with the travelers who happened to pass by.