Friends in Islam
Choose the perfume seller, not the blacksmith
In a world of thousands of online connections but rising rates of loneliness, where the word “friend” can mean anything from a childhood confidant to a stranger who accepted a request, Islam offers a vision of friendship that is radically intentional. The Prophet Muhammad (peace be upon him) did not leave friendship to chance. He warned that a person follows the religion of his closest friend. He compared good company to a perfume seller and bad company to a blacksmith’s furnace. He built the most famous friendship in Islamic history with a man who believed him without a moment’s hesitation, accompanied him into a cave while assassins searched outside, and gave away his entire wealth for the sake of Allah. The Prophet showed the Ummah that friendship is not entertainment. It is a force that shapes your character, your faith, and your Hereafter. This article explores what Islam teaches about choosing friends, the hadiths that define true companionship, and why the prophetic model of friendship is more needed today than ever.
What the Prophet Taught About Friendship
The Prophet (peace be upon him) treated friendship as a matter of faith, not merely of comfort or convenience. He taught his companions that the people they surround themselves with will shape their beliefs, their behaviour, and ultimately their standing before Allah. He gave them vivid imagery to remember, clear warnings to heed, and his own life as a living example of what true friendship looks like.
Signs of a Good Friend
Reminds you of Allah by their presence, their words, and their actions. Increases your knowledge and pushes you to grow in faith and character. Speaks the truth to you, even when it is uncomfortable to hear. Keeps your secrets and defends your honour in your absence. Stands by you in difficulty, not only in ease.
Signs of a Harmful Friend
Distances you from Allah through distraction, sin, or discouragement. Flatters you but never corrects you when you go wrong. Exposes your faults to others while hiding your good deeds. Disappears when you are in need and returns when you have something to offer. Leads you toward behaviour you would not choose on your own.
The Prophetic Teachings on Friendship
The Perfume Seller and the Blacksmith
The most famous hadith on friendship is a parable. The Prophet (peace be upon him) said: “The example of a good companion and a bad companion is like that of the seller of musk and the blacksmith’s bellows. The seller of musk will give you perfume, you will buy some from him, or at least you will enjoy a pleasant smell. As for the blacksmith, he will burn your clothes, or you will notice a bad smell” (Bukhari 2101, Muslim 2628). This is not abstract advice. It is a sensory lesson. A good friend’s influence reaches you whether you actively seek it or not, just as perfume fills a room without effort. A bad friend’s harm reaches you too, silently scorching your character the way sparks from a furnace land on your clothes without warning.
“A good friend is like a seller of musk a bad friend like a blacksmith”
A Person Follows the Religion of His Friend
The Prophet (peace be upon him) said: “A person is upon the religion of his close friend, so let each of you look carefully at whom he befriends” (Abu Dawud 4833). This hadith is among the most concise and powerful in the entire Sunnah. It does not say that a person is influenced by his friend. It says he is upon the religion of his friend. The Arabic word “din” covers beliefs, values, habits, and way of life. Your closest friend does not merely affect your behaviour. They shape your worldview. They define what you consider normal, acceptable, and desirable. The Prophet’s instruction is clear: before you commit to a friendship, examine whether this person will bring you closer to Allah or further away.
“A person is upon the religion of his close friend”
Friends Under Allah’s Shade
The Prophet (peace be upon him) described seven categories of people who will be sheltered under the Shade of Allah on the Day of Judgement, when there will be no other shade. Among them: “Two people who love each other for the sake of Allah, meeting on that basis and parting on that basis” (Bukhari and Muslim). This hadith transforms friendship from a social convenience into a ticket to divine protection on the most terrifying day in existence. The condition is significant: the friendship must be for the sake of Allah. Not for mutual benefit, not for status, not for shared entertainment, but because both people recognise something of Allah’s light in each other and draw closer to Him through their bond.
The Best Companion
The Prophet (peace be upon him) said: “The best of companions in the sight of Allah is the one who is best to his companion, and the best of neighbours in the sight of Allah is the one who is best to his neighbour” (Tirmidhi). Islam does not measure friendship by how entertaining or popular a person is. It measures it by how good they are to the people closest to them. A true friend in Islam is not the one who makes you laugh the most. It is the one who makes you better: better in your prayer, better in your character, better in your treatment of others, and better prepared for your meeting with Allah.
“The best of companions is the one who is best to his companion”
The Cave of Thawr: When Friendship Was Tested by Death
When the command came to leave Makkah, the Quraysh had already decided to kill the Prophet (peace be upon him). Assassins were posted at his door. Under cover of darkness, he slipped away, and the only person he chose to take with him was Abu Bakr al-Siddiq (may Allah be pleased with him). Not a general. Not a warrior. His closest friend.
They travelled south to mislead their pursuers and took refuge in the Cave of Thawr, hiding for three nights while the Quraysh scoured the desert. Inside the cave, Abu Bakr heard the footsteps of the trackers reaching the entrance. He whispered in terror: “O Messenger of Allah, if one of them only looks down at his feet, he will see us.” The Prophet, calm and certain, replied with words that Allah preserved forever in the Quran: “Do not grieve; indeed, Allah is with us” (Quran 9:40).
This is the defining moment of friendship in Islam. Abu Bakr was not afraid for himself. He was afraid for the Prophet. And the Prophet, in turn, did not reassure him with a battle plan or a weapon. He reassured him with Allah. Their bond was built not on shared interests or mutual benefit, but on shared faith in a moment where faith was all they had. Allah Himself called Abu Bakr “the second of two” and confirmed: “Allah is with us.” No friendship in human history has received a greater endorsement.
The Wrong Friend on the Day of Judgement
The Quran does not only praise good friendship. It issues one of the most chilling warnings in all of scripture about bad friendship. Allah says in Surah Al-Furqan: a person will bite his own hands on the Day of Judgement and cry: “Woe to me! I wish I had not taken so-and-so as a friend. He led me away from the remembrance of Allah after it had come to me” (Quran 25:28-29). The scene is devastating. The person does not blame a stranger or an enemy. He blames his friend. The one he chose. The one he spent his time with. The one whose influence quietly eroded his faith until, standing before Allah, he realises that the friendship he valued in this world has become his greatest regret in the next.
“Woe to me! I wish I had not taken so-and-so as a friend”
Islam’s Answer to Modern Life
The prophetic teachings on friendship address some of the most pressing social crises of the modern age.
The Loneliness Epidemic
Despite being more connected than ever through technology, people today are lonelier than at any point in recorded history. Studies consistently show rising rates of social isolation, depression, and a decline in the number of close friendships people maintain. Islam’s solution is not to accumulate more connections but to deepen the ones that matter. The Prophet did not have thousands of superficial acquaintances. He had companions who would die for him and for whom he would weep. Quality of friendship, not quantity of followers, is the Islamic standard.
The Influence of Social Media
The Prophet’s hadith that “a person is upon the religion of his close friend” takes on a new urgency in the age of social media. The people we follow, the content we consume, and the voices we listen to daily shape our values just as powerfully as the company we physically keep. The blacksmith’s furnace no longer needs to be in the same room. It can reach you through a screen. Islam invites the believer to apply the same critical filter to digital company as to physical company: does this person, this account, this voice bring me closer to Allah, or further away?
Friendship as Worship
Perhaps the most radical teaching Islam offers on friendship is that it can be an act of worship. Two people who love each other for the sake of Allah will be sheltered under His Shade on the Day of Judgement. A friend who gently corrects you is performing a service more valuable than flattery. A friend who wakes you for Fajr is helping you meet Allah. A friend who reminds you of death is giving you life. Modern culture treats friendship as leisure. Islam treats it as one of the most consequential choices a person will ever make.
A Reflection from the Quran
Allah says in Surah Az-Zukhruf of the Quran:
اَلۡاَخِلَّآءُ یَوۡمَئِذٍۭ بَعۡضُہُمۡ لِبَعۡضٍ عَدُوٌّ اِلَّا الۡمُتَّقِیۡنَ
“Close friends on that Day will be enemies to each other, except for the righteous.”
This verse draws the ultimate dividing line. Every friendship built on anything other than taqwa (consciousness of Allah) will collapse on the Day of Judgement. Friends who bonded over sin will turn on each other. Friends who enabled each other’s heedlessness will become enemies. Only those whose friendship was rooted in righteousness will remain together, standing in the safety of that bond while others crumble. The verse is not a warning against friendship. It is a warning against the wrong kind of friendship. And it is a promise to those who choose their companions wisely: your bond will outlast this world.
Frequently Asked Questions
The Prophet (peace be upon him) said: “A person is upon the religion of his close friend, so let each of you look carefully at whom he befriends” (Abu Dawud). Islam teaches that friends directly shape your beliefs, values, and behaviour. The Quran warns that wrongful friendships will become a source of regret on the Day of Judgement (25:28).
The Prophet (peace be upon him) compared a good friend to a seller of musk and a bad friend to a blacksmith’s furnace (Bukhari and Muslim). The musk seller benefits you by his presence alone, through his fragrance. The blacksmith harms you by his presence alone, through sparks and foul smoke. The lesson is that companionship influences you whether you intend it or not.
Yes. Islam encourages kindness, justice, and good treatment toward all people regardless of faith. The Quran says: “Allah does not forbid you from dealing kindly and justly with those who do not fight you because of your religion” (60:8). What Islam warns against is taking as intimate confidants people who actively work against your faith or lead you away from Allah. Friendly, respectful relationships with people of all backgrounds are part of the prophetic example.
It is a bond where both friends love each other primarily because of their shared faith and their desire to please Allah. The Prophet said that two people who love each other for the sake of Allah will be among the seven categories of people sheltered under Allah’s Shade on the Day of Judgement (Bukhari and Muslim). This type of friendship prioritises spiritual growth, mutual accountability, and sincere du’a for one another.
The Quran contains powerful warnings. In Surah Al-Furqan (25:28-29), a person will cry on the Day of Judgement: “Woe to me! I wish I had not taken so-and-so as a friend.” In Surah Az-Zukhruf (43:67), Allah says that close friends will become enemies to each other on that Day, except for the righteous. These verses make clear that the wrong friendship is not merely a social mistake but a spiritual danger.
Abu Bakr al-Siddiq (may Allah be pleased with him) was the Prophet’s closest companion. He was the first adult male to accept Islam, accompanied the Prophet on the Hijrah to Madinah, and hid with him in the Cave of Thawr while assassins searched for them. Allah honoured their bond in the Quran, calling Abu Bakr “the second of two” and recording the Prophet’s words to him: “Do not grieve; indeed, Allah is with us” (9:40).
Friendship in Islam is not a casual bond. It is a relationship with the power to elevate you to the Shade of Allah or drag you to a moment of unbearable regret on the Day of Judgement. The Prophet showed us through his words, his warnings, and his own extraordinary friendship with Abu Bakr that the people we choose to walk beside in this life will determine where we stand in the next. A good friend is a gift from Allah. A bad friend is a trial. And the wisest person is the one who can tell the difference.
As Allah, Al-Wali (The Protecting Friend), is the ultimate companion for every believer, may we seek friendships that reflect His guidance, surround ourselves with those who remind us of Him, and be for others the kind of friend the Prophet was: loyal, truthful, merciful, and always pointing the way back to Allah.
May Allah bless us with companions who are a source of light in this world and who will stand with us under His Shade on the Day when no other shade will remain. Ameen.
