The mosque is built at the place where a group of jinn are said to have gathered one night to hear the recitation of a portion of the Quran by Muhammad.[5][4][8][3] Muhammad later met there with these jinn's leaders and accepted their embrace of Islam and their bay'ah (oath of allegiance) to him.[8][1][6][9][3] The incident is mentioned in chapter al-Jinn of the Quran.[4][3]
The mosque is considered one of the oldest in Mecca and is one of the most important mosques visited in the city.[3][10]
^ abcdʻAwaḍ Quʻayṭī (al-Sulṭān.), Ghālib ibn (2007). The Holy Cities, the Pilgrimage and the World of Islam: A History from the Earliest Traditions Until 1925 (1344H) (illustrated ed.). Fons Vitae. pp. 298, 585. ISBN9781887752893.