The Qur'an describes the night journey from the Sacred Mosque to the Farthest Mosque. The hadith describe the ascension through the heavens, during which the five daily prayers were given.