Article snapshot taken from[REDACTED] with creative commons attribution-sharealike license.
Give it a read and then ask your questions in the chat.
We can research this topic together.
The Mosque of the Jinn (Arabic: مسجد الجنّ, romanized: Masjid al-Jinn) is a mosque, located in Mecca, Saudi Arabia, near Jannat al-Mu'alla. It is also known as the Mosque of Allegiance (Arabic: مسجد بِيعات, romanized: Masjid Biy‘āt) and the Mosque of Guards (Arabic: مسجد الحرس, romanized: Masjid al-Ḥaras) because the city's guards would patrol up to that point.
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. Muhammad later met there with these jinn's leaders and accepted their embrace of Islam and their bay'ah (oath of allegiance) to him. The incident is mentioned in chapter al-Jinn of the Quran.
The mosque is considered one of the oldest in Mecca and is one of the most important mosques visited in the city.
^ ʻ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.