Muhammad ibn Idris al-Shafi?i (d. 204H/820AD) was the eponym of the Shafi?i school of legal thought, one of the four rites in Sunni Islam.