Khayf al-Hizami is a village of Wadi as-Safra', about a hundred kilometres from Medina, beside the road to Badr. It lived around a spring that has now dried up.
The mosque was built around 1044 to 1065 AH (around 1640) by Ridwan Bey al-Fuqari, emir of the Hajj caravan from Egypt (Saudipedia; Okaz, 2022). It was restored under the Prince Mohammed bin Salman project for historic mosques and holds 180 worshippers.
At the end of 1811, the valley was the site of the battle of as-Safra', also called the "battle of al-Khayf": the army of Tusun Pasha, coming from Egypt, was driven back there by the forces of Imam ʿAbdullah ibn Saud after three days of fighting.
In this region died Imam ʿAbd ar-Rahim al-Burʿi (rahimahullah), a poet from Yemen known for his poems in praise of the Prophet ﷺ, while he was travelling to Medina.
