Muhammad Rafi (also known as Diya ad-Din Abul-Fath al-Makki or Mullah Rafi) was a medieval Dagestani historian who lived in the second half of the 13th century. The author of the historical chronicle "Tarikhi Dagestan" (“History of Dagestan”) written in 1312–1313. The chronicle was supplemented and received its final form only in the 17th century.[1][2]