He has authored several books including Slavery and Islam, Misquoting Muhammad: The Challenges and Choices of Interpreting the Prophet’s Legacy, Hadith: Muhammad's Legacy in the Medieval and Modern World, Muhammad: A Very Short Introduction, and The Canonization of al-Bukhari and Muslim. He has also published articles in the fields of Hadith, Islamic law, Salafism, Sufism, and Arabic language.