 The Madrasa al @-@ Taybarsiyya , which contains the tomb of Amir Taybars , was built in 1309 . Originally intended to function as a complementary mosque to al @-@ Azhar it has since been integrated with the rest of the mosque . The Maliki and Shāfi ‘ ī madh 'hab were studied in this madrasa , though it now is used to hold manuscripts from the library . The only surviving piece from the original is the qibla wall and its polychrome mihrab . Al @-@ Maqrizi reported that the madrasa was used only for studying the Shāfi ‘ ī while the historian Ibn Duqmaq reported that one of the liwans in the madrasa was reserved for Shāfi ‘ ī teachings while the other was for Maliki teachings . 
