History
In 5 AH, the Quraysh and allied tribes marched on Madinah with a force that Britannica puts at about 10,000 men. Instead of going out to meet them, the Prophet ﷺ had a trench dug across the open approaches to the city. Tradition credits the idea to Salman al-Farisi, a Persian companion; it was a tactic unfamiliar to the Arabs of the time.[5],[6]
The Muhajirin and Ansar dug the trench themselves in the cold, while hungry. The Prophet ﷺ carried earth alongside them until dust covered him, praying for Allah's forgiveness for the Ansar and Muhajirin. Jabir ibn Abdullah reported a hard rock that the companions could not break until the Prophet ﷺ struck it, and a small meal at Jabir's house that fed many of the diggers.[2],[3],[4]
The siege failed and the confederates withdrew. Surah al-Ahzab, from verse 33:9 onwards, reminds the believers of the armies that came against them and of the wind and unseen forces Allah sent against those armies. Britannica notes that the outcome pushed the Makkans towards recognising the strength of the Muslim community.[1],[5]
The mosques
The small mosques mark places on the trench line associated with the battle and carry the names of al-Fath, Abu Bakr, Umar, Ali, Fatimah and Salman al-Farisi. They are later memorials rather than buildings from the Prophet's time: they were first built in stone under Umar ibn Abd al-Aziz in the Umayyad era, renovated in 1179 CE and rebuilt in 1851. Saudi sources link the name of Masjid al-Fath, the largest, to the Prophet's prayers there during the siege.[7],[8]
Visiting today
Despite the name, there are six mosques in the group; Masjid Qiblatain, about 1 km away, is counted as the seventh because visitors usually see it on the same trip. Ask your guide which of the small mosques are open on the day, and use the stop to recall the story of the trench and the siege.[7]