ابوایوب خالد بن زید بن کلیب بن ثعلبة بن عوف بن غنم بن مالک بن النجار بن ثعلبة بن عمرو انصاری خزرجی (۵۷۶ میلادی در مدینه - ۶۷۴ میلادی در کنستانتینوپل) معروف به ابوایوب انصاری از اصحاب محمد بن عبدالله و از انصار بود. محمد وقتی از مکه به مدینه هجرت کرد، شب را در خانه او اقامت گزید. با فتح مصر، ابوایّوب به مصر رفت. او از مهمترین راویان حدیث است.
خالد بن زید معروف به ابوایّوب انصاری، از قبیله خزرج و میزبان پیامبر اسلام در هنگام هجرت او از مکه به مدینه است. ابوایوب انصاری در عقبه حاضر بود و در غزوات بدر، احد، خندق و... حضور داشت. برخی مفسّران، نزول آیه ۵ سوره انفال[قرآن انفال ۵] را درباره ناخشنودی وی و شماری از انصار در رویارویی با قریش در جنگ بدر، و آیات ۱۲ و ۱۶ سوره نور[قرآن نور ۱۲–۱۶] را در تأیید سخنان وی دانستهاند که با شنیدن ماجرای افک آن را تهمتی بزرگ شمرد. آیه ۶۱ سوره نور[قرآن نور ۶۱] را نیز در خصوص نگرانی او از خوردن طعام در منزل صحابهای که در مأموریّت جنگی بوده دانستهاند. وی در سالی که یزید ابن معاویه به جنگ قسطنطنیه(۵۲ هـ. ق) رفت درگذشت.
Abu Ayyub al-Ansari (died 674) — born Khalid bin Zayd bin Kulayb in Yathrib — hailed from the tribe of Banu Najjar and was a close companion (Arabic: الصحابه, sahaba) of Muhammad. He was named after the biblical Job. Abu Ayyub was one of the Ansar (Arabic: الأنصار, meaning aiders, helpers or patrons) of early Muslim history, those who supported Muhammad after the hijra (migration) to Medina in 622. The patronym Abu Ayyub, means father (abu) of Ayyub. Abu Ayyub died of dysentery during the First Arab Siege of Constantinople.
When Muhammad arrived in Medina, all of the inhabitants of the city offered to accommodate him. It is said that he decided instead to allow his camel to walk where it chose and to stay at whomsoever's house it stopped. The camel stopped at the house of Abu Ayyub al-Ansari, a member of the Bani An-Najjar, who were regarded as the best of the tribes of Medina. Though Abu Ayub Al Ansari had prepared meals for only Muhammad and Abubakr, Muhammad directed that everyone in the neighborhood be invited to partake in the meal. To everyone's surprised delight, all of the approximately 180 people who came were able to eat to their satisfaction. This was deemed to be a miracle.
Waqif of Al-Masjid an-Nabawi: The land of Al-Masjid an-Nabawi belonged to two young orphans, Sahal and Suhayl, and when they came to know that Muhammad wished to acquire their land for the purposes of erecting a mosque, they went to the Prophet and offered the land to him as gift; the Prophet insisted on fixing and paying a price for the land precisely because they were orphaned children. The ultimately agreed purchase price was paid by Abu Ayyub al-Ansari who thus became the واقِف (waqif, or creator of an endowment or mortmain; donor) of Al-Masjid an-Nabawi on behalf of, or in favor of, Muhammad.
Following the Muslim conquest of Egypt, Abu Ayyub moved to Fustat, where he lived in a house adjacent to the mosque of Amr bin Al'aas that had been completed in 642. Several other notable companions were his neighbors, including Zubayr ibn al-Awwam, Ubaida, Abu Dhar, Abdullah ibn Umar and Abdullah ibn Amr bin Al'aas.
He also led a distinguished military career, regarding which it was said, "He did not stay away from any battle in which the Muslims engaged from the time of Muhammad to the time of Muawiyah, unless he was at the same time, engaged in another battle being fought elsewhere."
Last military campaign
In a hadith in Qital al-Rome, a chapter of Sahih Muslim, Muhammad prophesied that the first army to conquer Constantinople will enter Paradise.
Muhammad ibn Jarir al-Tabari records a number of raids against the Byzantine Empire under the period A.H. 49 (9/2/669 - 28/1/670). Though Abu Ayyub was by then an old man, that did not deter him from enlisting. Shortly after engaging in battle, it is recorded that he fell ill and had to withdraw. The chief of army staff Yazid ibn e Muawiya asked, "Do you need anything, Abu Ayyub?" To which Abu Ayyub replied, "Convey my salaams (Islamic greeting and farewell) to the Muslim armies and tell them, "Abu Ayyub urges you to penetrate deep into enemy territory, as far as you can go; and that you should carry him with you, and that you should bury me under your feet at the walls of Constantinople." At this, he died. Yazid ordered the Muslim army to fulfil his request, and they pushed back the enemy's forces until they reached the walls of Constantinople where Abu Ayyub was finally interred.
About this battle, Aslam-ibn `Imran narrates that when they were fighting the Byzantines, a Muslim soldier penetrated deep into enemy ranks. People exclaimed, "Subhan Allah! He has contributed to his own destruction." Abu Ayyub al-Ansari stood up and answered, "O people! You give this interpretation to this verse, whereas it was revealed concerning us the Ansar. When Allah had actually given honor to Islam and its supporters had become many, whereupon some of us secretly said to one another... 'Our wealth has been depleted, and Allah has given honor to Islam and its supporters have become many, let us stay amidst our wealth and make up what has been depleted of it.' Thereupon, Allah revealed to Muhammad, 'And spend in the Path of God (فِي سَبِيلِ اللّهِ), and do not contribute to your own destruction'... refuting what we had said. So, destruction lay in staying with our wealth and repleting it and abandoning combat."
Final resting place
“built of white marble by Mehmed II, the Conqueror, in 1459, adjacent to the türbeh of Abu Eyúb Ensari, the legendary standard-bearer of the prophet, whose tomb here was revealed in a vision a few days after the conquest…”
Baedeker's The Mediterranean, seaports and sea routes: Handbook for Travellers, 1911
After the Conquest of Constantinople by the Ottoman Turks, a tomb was constructed above Abu Ayyub's grave and a mosque built in his honor. From that point on, the area now known as the locality of Eyüp has become sacred and many Ottoman officials requested burial in proximity of Abu Ayyub
Some hadith narrated by Abu Ayyub
Abu Ayyub al-Ansari is credited with narrating many sayings of Muhammad. Well-known examples of these include: