Abu Bakr A?mad ibn ?Ali ibn Thabit ibn A?mad ibn Mahdi al-Shafi`i, commonly known as al-Kha?ib al-Baghdadi (Arabic: ?????? ?????????) or "the lecturer from Baghdad" (10 May 1002 – 5 September 1071; 392 AH-463 AH), was a Sunni Muslim scholar and historian.