The first hospital in Egypt was opened in 872 and thereafter public hospitals sprang up all over the empire from Islamic Spain and the Maghrib to Persia. The first Islamic psychiatric hospital was built in Baghdad in 705.Many other Islamic hospitals also often had their own wards dedicated to mental health.he first hospital in Egypt was opened in 872 and thereafter public hospitals sprang up all over the empire from Islamic Spain and the Maghrib to Persia. The first Islamic psychiatric hospital was built in Baghdad in 705. Many other Islamic hospitals also often had their own wards dedicated to mental health.