Ibn Rushd, aka Averroes in the Latin world, was a polymath and jurist who wrote about philosophy, theology, medicine, astronomy, physics, psychology, mathematics, Islamic jurisprudence and law, and linguistics.
Risalat al-Nafs is made available here in Arabic.