Courtyard of Ibn Tulun mosque in Cairo, Egypt. It was built in AD876 during the Abbasid dynasty. Muhammad later moved to the city of Medina and built a mosque (Islamic place of worship).