In a cave on Mount Hira, near Mecca, he spent several weeks every year in prayer and religious meditation.