The tomb of Imam al-Shafi is located in the Lesser Qarafa of the Southern Cemetery in Cairo. There is a plaque at the entrance which shows that main porch and entrance facade was renovated in 2008 from two different donors.
Imam al-Shafi was born in Gaza (Palestine) in 767, he belonged to the Qurayshi clan of Banu Muttalib. His full name was Muhammad ibn Idris al-Shafi from the House of the Prophet. He was a famous Arab Muslim theologian, writer, and scholar, who was the first contributor of the principles of Islamic jurisprudence (Uṣul al-fiqh).
Al-Shafi lived in Mecca and Baghdad and then decided to move to Egypt. Imam Ash-Shafi’i wrote several books, the most well known of which is called Al-Umm, which is a collection of writings and lectures of the Imam. A number of his students have also collected his writings, lectures and rulings in the form of books, or quoted him in their books.
Imam Shafi died at the age of 53/54 in 820 in Cairo. Next to the grave of Imam Shafi is the grave of wife of Malik Adil, he was brother of Saladin (Salahuddin Ayubi).