Abu Ayyub al-Ansari, born Khalid ibn Zayd ibn Kulayb ibn Tha'laba in Yathrib (Medina), was a Companion of the Prophet Muhammad and a member of the Banu Najjar of the Banu Khazraj. As a respected elder, he pledged allegiance to Muhammad at Aqaba and later supported the community after its migration to Medina in 622. His name, Abu Ayyub, means “father of Ayyub.”
When Muhammad acquired land for Al-Masjid an-Nabawi from 2 orphaned boys, Abu Ayyub paid the agreed price and became the mosque’s waqif. He later served as governor of Medina under Ali ibn Abi Talib. After the Muslim conquest of Egypt, he settled in Fustat near the Mosque of Amr ibn al-As. Accounts described him as taking part in Muslim campaigns from Muhammad’s time through the rule of Muawiya I.
In 672, during a campaign against the Byzantines and the siege of Constantinople, Abu Ayyub fell ill. He asked that his greetings be conveyed to the Muslim forces and that he be buried near the city walls. The army carried out his request, and he was buried there. After the Ottoman conquest of Constantinople, a mosque and tomb were established in his honor; the site became a traditional setting for Ottoman sultans’ coronation ceremonies.
Abu Ayyub was also remembered as a narrator of hadith. Reports attributed to him include Muhammad’s counsel against shunning a fellow Muslim for more than 3 nights and the teaching that fasting 6 days in Shawwal after Ramadan was like fasting throughout the year. His descendants spread across the Arabian Peninsula and the Indian subcontinent; one branch settled in Herat, where the family of the scholar Abdullah Ansari traced its ancestry to him.