Shams al-Din Muhammad b. Ahmad al-Khafri al-Kashi (died 1550), Persian: محمد بن احمد خَفری known as Khafri, was an Iranian religious scholar and astronomer at the beginning of the Safavid dynasty.
[1] Before the arrival of Sheikh Baha'i in Iran, he was appointed as the major Shia jurist in the Safavid court.
[2] He was born in the city of Ḵafr, south east of Firuzābād in the region of Fārs.
[3] He wrote on philosophy, religion, and astronomy, with the latter including a commentary on al-Tusi and critiques of al-Shirazi.
[4] Khafri was a theoretical astronomer who developed new planetary theories in a period beyond the supposed period of decline of Islamicate science, and is one of many examples that help dispel the theory that Islamicate scientists did not contribute much after the 12th century.