All companions

The Companions

Abu Ayyub al-Ansari

The Host of the Prophet


There is a way to measure a man that has nothing to do with what he owns or builds: who is chosen to stand near greatness, and why. When the Prophet Muhammad ﷺ finally entered the city that had waited years for him, every household in al-Madinah wanted him. The noblest of the Ansar reached for the reins of his camel, each begging him to stay under their roof. He chose none of them by his own hand. He let the camel walk, told the people it was commanded by Allah, and watched where it would kneel. It knelt in front of one door, and the man behind that door spent the rest of his life known by a single thing: he had hosted the Messenger of Allah ﷺ.

His name was Abu Ayyub al-Ansari (may Allah be pleased with him), and to understand how much it means that Allah chose him out of all the Ansar, you have to remember who the Ansar were.

A man Allah chose from among the chosen

The Ansar were the people who had already given everything before they had been asked for anything. They had taken in strangers fleeing persecution, opened their homes, split their wealth, and loved men they had only just met, for no reason except that those men loved the Prophet ﷺ. Allah praised them in His own Book for loving those who migrated to them and preferring others over themselves. To be remarkable inside a group like that is no small thing. So when the camel knelt at one door, it was not an accident of geography. The Prophet ﷺ did not pick the finest house, nor the home of the most powerful chief. Allah chose Abu Ayyub, and when Allah chooses a person for such an honor, it tells you something of what He had already seen in his heart.

His real name was not even Abu Ayyub. It was Khalid ibn Zayd ibn Kulayb, of the tribe of Banu Najjar, the same maternal lineage from which the Prophet ﷺ himself descended, for the great-grandmother of the Prophet ﷺ, the mother of Abdul Muttalib, had come from that tribe. There is a quiet symmetry in it. The very district where Abu Ayyub lived, where the mosque and the grave of the Prophet ﷺ would one day stand, was the same ground where Abdul Muttalib had grown up as a boy, never imagining his greatest descendant would one day return to change the world from there.

Of his life before Islam the books are nearly silent. He was not a politician of Yathrib jockeying for position. He was known for being generous and good to his people, and that was all. Then he traveled to Makkah with the seventy or so who gave the second pledge of Aqabah, swearing to receive the Prophet ﷺ and protect him as they protected their own families. He was among the earliest of al-Madinah, one of those who prepared the city for its Messenger before the Messenger ever arrived.

The house with two stories

When the camel knelt and walked and turned and finally settled before his door, Abu Ayyub and his wife Umm Ayyub were overcome with joy. The mosque was not yet built; it would rise on whatever land the Prophet ﷺ chose, and the camel had chosen theirs. Their home had two stories: the Prophet ﷺ and his wife Sawda (may Allah be pleased with her) could take one floor, and Abu Ayyub and his wife the other.

But which floor should the Prophet ﷺ take? The ground floor made sense, where he could receive the streams of visitors and conduct the affairs of a city now looking to him as its leader. He settled downstairs. And immediately Abu Ayyub and Umm Ayyub were thrown into a kind of holy distress: how could they sleep above the head of the Messenger of Allah ﷺ, letting their footsteps fall over the place where he lay? That first night they pressed themselves against the wall, lying awkwardly through the dark hours, because the thought of walking over him was unbearable.

The Prophet ﷺ noticed their exhaustion and asked what was wrong. Abu Ayyub confessed it: "Messenger of Allah, are we to walk above your head?" He begged him to move upstairs. The Prophet ﷺ gently refused. "Take it easy, Abu Ayyub," he told him; the lower floor made more sense, and there was no sin in it. But Abu Ayyub could not do it. He went on hugging the wall.

Then one night water spilled upstairs, and in those homes water seeped down through the roof. The very thing they dreaded had come true: it might drip onto the Prophet ﷺ below. The couple leapt up in a panic, took the one blanket they had, and mopped the floor with their hands so that not a single bead would fall on the Messenger of Allah ﷺ. In the morning Abu Ayyub came down trembling and pleaded again: "Messenger of Allah, it is not right for me to be above you." This time the Prophet ﷺ allowed it. They moved his belongings upstairs, and Abu Ayyub noted, almost in wonder, how little there was to move. The man who led a city owned so few possessions that shifting his whole household took hardly any effort.

Following the Messenger to the smallest detail

From then on they sent food down to the Prophet ﷺ and his family. When the dishes came back up, they would search them for the place the Prophet ﷺ had eaten from, and eat from that very spot, so that even their meal might touch where his hand had touched.

One day they sent up fresh garlic, and it came back untouched. They panicked again. The Prophet ﷺ came down, and Abu Ayyub asked, "Messenger of Allah, is this garlic forbidden?" No, he told him; it is not forbidden, but I do not like to eat it raw, for it leaves an odor, and I dislike carrying it to the mosque or when the angels come to me. Abu Ayyub's answer was instant and total: "Then I hate what you hate. From this day, I do not like garlic either." The Prophet ﷺ smiled and told him this was for him alone. But Abu Ayyub did not want a single difference between himself and the Messenger of Allah ﷺ, even in what he placed on his tongue.

In that same house he witnessed one of the great miracles. He and Umm Ayyub had prepared a meal for four. The Prophet ﷺ told him to invite thirty of the Ansar, and they came and ate from it. Then sixty more. Then seventy more. By the end, Allah had fed a hundred and sixty people through His Messenger ﷺ from the food of four. For the seven months the mosque was being built, Abu Ayyub watched, up close, the blessing Allah poured through his hands.

The night three men met because they were hungry

When the mosque was finished, the Prophet ﷺ did not tell his host to find another home. The small dwellings of the Prophet's family were built right there, and Abu Ayyub remained his neighbor, still preparing food each day and setting it out for him.

One of the most humbling scenes in all the seerah grew out of this arrangement. One night the Prophet ﷺ went out, and near the mosque he came upon Abu Bakr, and then Umar, all three drawn from their homes in the dark. "What has brought you out at this hour?" he asked. "Hunger," they said. Sit with that: the greatest man who ever lived and the two greatest men of his ummah, meeting in the night because none of them had food. The Prophet ﷺ swore that the very thing that drove them out had driven him out too, and told them to follow him.

They went to the house of Abu Ayyub. Umm Ayyub opened the door with the words, "Welcome to the Messenger of Allah," and before she could finish, Abu Ayyub came running from the palm trees where he had been working. Seeing the hour, he understood: these men were hungry. And the way his heart worked in that instant tells you everything. Not pity, not burden, but gratitude. "All praise is to Allah," he said, "no one today is more honored by his guests than I am." He hurried to his garden for the best of his dates, drew fresh water, and fetched two loaves for Umm Ayyub to bake. Then he went to slaughter a young goat. The Prophet ﷺ told him not to exhaust himself, not to kill a milking animal in his haste, but Abu Ayyub insisted; this was his opportunity, and he would not let it pass.

When the food was set before him, the Prophet ﷺ took the bread, laid a piece of meat inside it, and told Abu Ayyub to carry a portion to his daughter Fatima, "for she has not seen the likes of this for days." Only after she was cared for did he eat. And as he sat among his companions, he named the blessings aloud, bread, meat, ripe dates, cool water, things his household so rarely saw that Aisha (may Allah be pleased with her) would later say months passed with nothing baked in their oven. And the Prophet ﷺ wept. He swore to Abu Bakr and Umar that they would be asked about this blessing on the Day of Judgment. So begin with the name of Allah, he told them, and when you finish, say: all praise belongs to Allah who has filled us and bestowed His bounty upon us. This was not to make them feel guilt but to teach them gratitude, for he had taught before that whoever wakes secure in his home, healthy in body, with food enough for the day, it is as though the whole world has been gathered for him. Abu Ayyub was the man Allah placed in the position to feed His Messenger ﷺ in moments like these, and to feed our hearts a lesson in thankfulness.

The one whose words Allah wrote into the Qur'an

Because he was the host of the Prophet ﷺ, Abu Ayyub came to be seen as a kind of caretaker of the mosque. To him belongs a striking first: he was the first to throw a hypocrite out of it. The Prophet ﷺ would patiently ignore their sneering, but one day Abu Ayyub heard them mocking him inside the mosque itself, and he could not contain himself. He lifted the man who was speaking and put him out the door.

But his greatest answer to the hypocrites was not delivered with his hands. It was so perfect that Allah preserved it forever in His Book. When the slander against Aisha (may Allah be pleased with her) swept through the city, passed from mouth to mouth under the cover of curiosity, "did you hear, did you hear," Umm Ayyub came to her husband and repeated what everyone was saying. Abu Ayyub's reply was that of a believer who refuses to let a whisper become a flood. "Yes," he said, "and it is a lie." Then he turned the matter back on her: "Would you do such a thing, Umm Ayyub?" She said, "By Allah, never." And he answered, "Then Aisha is better than you. This is a clear and obvious lie."

He was not insulting his wife. He was defending his mother, the wife of the Prophet ﷺ, saying plainly that a pure woman should be assumed pure, and that the dignity of the believers does not bend to gossip. And Allah revealed words that mirror exactly what Abu Ayyub had said:

When you heard the lie, why did believing men and women not think well of their own people and declare, 'This is obviously a lie'?

Qur'an 24:12

In a community where some spread the slander and some merely fell silent, the one man whose instinct was recorded in revelation as the right one was Abu Ayyub. His heart had already arrived where the verse would command.

He stood by the Prophet ﷺ with his body too. Once the Prophet ﷺ found him keeping watch outside his house at night with a drawn sword, and prayed, "O Allah, protect him as he is protecting me." He was a man of Badr, the highest of ranks among those who fought, and he was at Uhud, at the Trench, and at the pledge under the tree. He never once said, let me stay behind and watch the mosque. Wherever the Prophet ﷺ went, he wanted to be at his side.

The years after, and the kindness returned

When the Prophet ﷺ passed away, Abu Ayyub did not retire into the memory of his honor. He kept going out in the path of Allah under Abu Bakr, Umar, and Uthman (may Allah be pleased with them). When the great trial broke out among the Muslims after the killing of Uthman, he stood with Ali (may Allah be pleased with him), who placed him in charge of al-Madinah. Yet when that strife turned into Muslim fighting Muslim, Abu Ayyub, who had never once stayed behind from a battle, refused to fight at Siffin or the Camel. He drew his sword again only against the Khawarij. His was a restraint born not of cowardice but of conscience.

In his later years he moved from place to place, living for spells in al-Madinah, Syria, Egypt, and Iraq. One of the most tender stories of his life comes from his arrival in Basra, where the governor was Abdullah ibn Abbas (may Allah be pleased with him), the young cousin of the Prophet ﷺ who had clung to his company as a boy. When he heard Abu Ayyub was coming, he went out to meet him and said, "I am going to repay you for how you hosted the Prophet ﷺ." He gave him the keys to his own house and everything in it, and when he learned Abu Ayyub owed some twenty thousand dinars, he gave him forty thousand. Years had passed, the Prophet ﷺ was long gone, and still the gratitude of the younger generation reached back to honor the man who had once opened his door to him. That is what love of the Prophet ﷺ does.

Wherever he settled, the same trait followed him: he loved the mosque, attended every prayer, and quietly took up the role of its caretaker and its conscience. He would correct an official who differed from the Prophet's practice with a single sentence: "I saw the Messenger of Allah ﷺ pray with my own eyes. When you agree with him, we follow you. When you differ from him, we will not." It was not arrogance, but a man carrying what he had witnessed and refusing to let it be altered, who would rather err on the side of honoring Allah than risk the smallest disrespect.

A grave at the edge of the world

His death was as remarkable as his life. Under the reign of Muawiyah, an aged Abu Ayyub, now in his eighties, joined the army that marched against the Romans at Constantinople, the prize the Prophet ﷺ had foretold would one day belong to the Muslims. The man who had hosted the Messenger of Allah ﷺ in his home now traveled to the farthest point the Muslims had ever reached, because he wanted to be as close as possible to the place his Prophet had promised.

He did not fall to a wound; he fell ill. And as death approached, he gave his companions an instruction: "Take me to the furthest point you can reach, and when you face the enemy, bury me there, beneath your feet." Then he told them he had one more hadith to share, the last of the roughly fifty he carried from the Prophet ﷺ. "Were I not in this state," he said, "I would not tell you, but I do not want to keep anything from you now." Then he reported the words of the Messenger of Allah ﷺ: whoever dies without associating any partner with Allah will enter Paradise. He had withheld this hadith of pure hope lest people grow lazy, but now he wanted them to know the weight of la ilaha illa Allah. And having said it, he died upon it, leaving this world not only upon the word but giving its good news with his final breath.

They buried him at the gates of Constantinople. Centuries later, when the city fell to the Muslims, a mosque rose over his grave, and to this day an entire district of that city carries his name. He left behind one daughter, Amrah, herself a companion, and that piece of ground in al-Madinah, given for the sake of Allah, where the mosque was built upon his land, an endowment from which reward still flows to him every time a worshipper prays there.

What this life asks of our faith

It is easy to read about Abu Ayyub and feel a soft, distant warmth, to picture a kind old man who once had the good fortune to host the Prophet ﷺ and leave it there. But his life is not a pleasant anecdote. It is a question pressed against our own iman.

The honor that defined him was given, not earned by scheming. While others calculated how to gain leverage by taking the Prophet ﷺ in, he simply loved him and waited, and Allah chose him. That is the first thing his life asks: do you trust Allah to place you where you belong, or do you grasp and position yourself for what you want? The things most worth having are the things Allah assigns. Make your heart worth choosing, and leave the choosing to Him.

Then look at how he loved. He would not eat what the Prophet ﷺ disliked, though it was lawful for him. He pressed himself against a wall in the night rather than rest above the Messenger of Allah ﷺ, and mopped spilled water with his bare hands in a panic of devotion. This is love that lives in the small things, and that is exactly where our love of Allah and His Messenger ﷺ is tested today. Anyone can claim great love in a great moment. The truer measure is whether you will adjust the small, private, unseen details of your life for the sake of the One you say you love.

And see what he did with the gifts of Allah. When three hungry men appeared at his door, he saw not a burden but an honor, and said so aloud. Over a simple meal the Prophet ﷺ wept and warned that we will be questioned about every such blessing. We wake each day in security, in health, with food enough, and let it pass as though it were owed to us. His life, and that night of weeping, ask us to see what is already in our hands as the bounty it truly is, and to do something with it for Allah: to feed someone, to open a door, to turn a small provision into a small worship. The gratitude that brought the Prophet ﷺ to tears is available to you over your next ordinary meal.

Finally, hold on to the way he died. After a lifetime of nearness to the Prophet ﷺ, of battles and authority and honor, what he chose to carry to the edge of the earth and give with his last breath was the worth of la ilaha illa Allah. Not his status, not his memories, but the pure word of his Lord and the hope that whoever dies upon it will reach the Garden. That is where he placed his trust at the end, and it is where each of us must place ours. So take one thing from him into your week: love Allah and His Messenger ﷺ in something small and unseen, treat one of your daily blessings as the gift it is and spend it for His sake, and guard in your heart, above all your achievements, the worship of God alone. May Allah be pleased with Abu Ayyub al-Ansari and with his wife Umm Ayyub, reward the Ansar who loved the Prophet ﷺ as he loved him, and let us die, as he did, upon la ilaha illa Allah.

This chapter follows the account of Abu Ayyub al-Ansari (RA) in Dr. Omar Suleiman's series The Firsts (Yaqeen Institute). The Qur'an translation is from M.A.S. Abdel Haleem (24:12). Where the histories carry more than one narration, the most widely reported has been followed.

Questions

Who was Abu Ayyub al-Ansari?
A companion of the Prophet Muhammad ﷺ from the Ansar of Madinah, of the tribe of Banu Najjar. His real name was Khalid ibn Zayd, and he is best known as the host who received the Prophet ﷺ into his home when he first came to the city.
Why is he called the host of the Prophet?
When the Prophet ﷺ arrived in Madinah, he let his camel choose where he would stay. It knelt in front of Abu Ayyub's house, and he hosted the Prophet ﷺ in his two-story home for about seven months while the masjid was being built.
How does the Qur'an connect to his story?
When the slander against our mother Aisha (RA) spread, Abu Ayyub answered that it was plainly a lie and that she was better than any of them. The meaning of his response was preserved in Surah An-Nur, verse 12.
What can we learn from the life of Abu Ayyub?
That honour comes from Allah rather than from grasping for it, that love is proven in small and quiet acts, that we should speak the truth even when it is easier to stay silent, and that we should never grow too comfortable to keep serving.

Watch the episode

This story is retold from Dr. Omar Suleiman's series The Firsts (Yaqeen Institute). Watch the original on YouTube:

Watch on The Firsts

A companion in your calendar, every day.

Subscribe, free