It was built in the neighborhood of Banu Mu'awiyah in the time of the Prophet PBUH, so it was named after him.
Then the mosque became known as Masjid Ijaba, because when the Prophet (PBUH) passed by it, the Prophet (PBUH) prayed a long rak'ah in it and prayed for a long time. He said: 1. "I asked that my ummah not die of famine, so my request was granted" 2. "I prayed that my ummah would not be drowned and perished, so Allah accepted my prayer." 3. "I prayed that there would be no dissension in my ummah, so my prayer was not accepted"
It is located northeast of the Prophet's Mosque at a distance of 870 meters
It has been renewed and expanded several times in the last centuries, the last expansion taking place during the reign of the Custodian of the Two Holy Mosques, King Fahd.
In which it was built of strong concrete and a minaret was built in its southeast corner, ablution house was built in the north direction.