It is believed to be located in a place where the Islamic prophet Muhammad performed an Eid prayer in the year 631.
It is also narrated that Muhammad offered Salat ul-Istasqa when the city of Madina faced a shortage of rain.
For a while,[citation needed] this mosque was closed for daily prayers because of its proximity to the Al-Masjid an-Nabawi.
It was renovated again by the Sharif Saifuddin Inal Al-Ala'i in 1622, and at the time of Sultan Abd-ul-Mejid I in 1859 during the Ottoman era, using new tools and the appearance resembles more or less what it is today.
The mosque is rectangular shaped, and made of two parts, which are entrance door and prayer room.