Al-Farabi spent most of his scholarly life in Baghdad. In the autobiographical passage preserved by Ibn Abi Usaybi'a, al-Farabi stated that he had studied logic, medicine and sociology with Yuhanna ibn Haylan up to and including Aristotle's Posterior Analytics, i.e., according to the order of the books studied in the curriculum, al-Farabi was claiming that he had studied Porphyry 's Eisagoge and Aristotle's Categories, De Interpretatione, Prior and Posterior Analytics. His teacher, Yuhanna bin Haylan, was a Nestorian cleric. This period of study was probably in Baghdad, where al-Mas'udi records that Yuhanna died during the reign of al-Muqtadir (295-320/908-32). In his Appearance of Philosophy (Fī Ẓuhūr al-Falsafa), al-Farabi tells us: