The ijāzat al-tadrīs wa-al-iftāʼ ("licence to teach and issue legal opinions") in the medieval Islamic legal education system had its origins in the 9th century after the formation of the madhāhib (schools of jurisprudence).