Whoever builds a mosque for God, even like the nest of a bird to lay her eggs, God will build for him an abode in paradise.1.
In 1774, the Mamluk shaykh al-balad Muhammad Bey Abu al-Dhahab began the construction of a large mosque-madrasa-takiyya in one of central Cairo's prime locations. The complex bearing the name of the donor lies within a rough triangle formed by the main gate of al-Azhar, the Khan al-Zarakisha, and the wikāla of the 16th-century Mamluk ruler Qansuh al-Ghawri and forms the most important part of Muhammad Bey's waqf. Extensive agricultural lands and urban properties were included in the waqf by the donor to support the personnel of the mosque, school, and rakiyya, to pay for the religious activities stipulated by the terms of the waqf, and for the upkeep of the buildings.