Friendship in Islam: Who to Keep Close and Who to Let Go

‘A man follows the religion of his friend,’ the Prophet ﷺ said, ‘so let each consider carefully who he takes as a friend.’ Friendship in Islam is not incidental — the people you keep close quietly shape who you become.

The Prophet ﷺ said, “A man follows the religion of his close friend, so let each of you consider carefully who he takes as a close friend” (Abu Dawud 4833, Tirmidhi 2378). This is among the most consistently confirmed findings of modern social science too: the people you spend time with shape your values, your habits, your standards, and even your character, often without your noticing. Friendship in Islam is therefore not an incidental part of life to be left to chance, but a matter of deliberate care, because the company you keep is quietly making you into someone — either drawing you toward Allah ﷻ or away from Him. Knowing who to keep close and who to let go is not coldness; it is the wisdom of a person who understands that they are being shaped by their companions, and who chooses, therefore, to be shaped toward the good. The whole tradition treats the choosing of companions as one of the most consequential decisions a person makes.

What Islam Says About Choosing Friends

Islam takes the influence of companionship with great seriousness, and gives clear guidance on it. The Prophet ﷺ gave the famous parable: “The example of a good companion and a bad companion is like that of the seller of musk and the blower of the bellows. The seller of musk will either give you some, or you will buy some from him, or you will smell a good scent from him; but the blower of the bellows will either burn your clothes, or you will smell a foul odour from him” (Bukhari 5534). Good company benefits you even passively — you catch its scent — while bad company harms you even if you intend no harm. He also warned, “a person is upon the religion of his close friend,” and taught that on the Day of Judgement the heedless will regret their companions bitterly: “Woe to me! I wish I had not taken so-and-so as a friend” (25:28). And the Quran commands positively seeking the company of the righteous: “keep yourself patiently with those who call upon their Lord morning and evening, seeking His Face” (18:28). The principle throughout is clear: companionship is formative, so it must be chosen, not merely fallen into — and the friend to seek is the one whose company draws you toward Allah ﷻ, whose presence improves you, and who would remind you of Him rather than distract you from Him.

Who to Keep Close, and Who to Let Go

From this, the tradition gives practical wisdom on both keeping and releasing. The friend to keep close is the one who is good for your deen and your character: who reminds you of Allah ﷻ when you forget, encourages you toward good and restrains you from wrong, whose company leaves you better rather than worse, and who is truthful, loyal, and sincere — the “seller of musk” whose scent you catch. Such friends are among the greatest of worldly blessings, and the tradition praises the love between believers for the sake of Allah ﷻ as a source of Allah’s ﷻ own love and shade on the Day of Judgement. The friend to let go — or at least to keep at a careful distance — is the one who consistently drags you down: who pulls you toward sin, normalises what Allah ﷻ forbade, mocks your religious commitment, or whose company reliably leaves you spiritually worse. This does not mean cruelty, cutting people off harshly, or arrogance toward them; one may wish them well, treat them justly, invite them to good, and pray for them, while no longer taking them as an intimate whose influence shapes one’s heart. There is an essential difference between the people you are kind to and the people you allow to form you. Letting go of a harmful closeness is not a betrayal but an act of self-preservation the Prophet ﷺ himself counselled — “consider carefully who you take as a friend” — because the stakes are nothing less than the religion and character you will end up with. To choose your close companions wisely is thus one of the most practical and consequential things you can do for your own soul.

Choose companions deliberately — they are shaping you. Take seriously that “a man follows the religion of his close friend” (Abu Dawud 4833): your companions are quietly making you into someone, drawing you toward Allah ﷻ or away from Him. Do not leave friendship to chance. Choose close company the way you would choose anything that forms your character and your faith — carefully — because the influence is real whether or not you notice it, and the stakes are your own deen.

Keep close the one who is good for your deen. Seek and hold onto the “seller of musk” (Bukhari 5534): the friend who reminds you of Allah ﷻ, encourages you toward good and restrains you from wrong, and whose company leaves you better rather than worse. The Quran commands keeping company with “those who call upon their Lord morning and evening” (18:28). Such friends are among the greatest blessings, and the love between believers for Allah’s ﷻ sake earns His love and His shade — so treasure and prioritise them.

Let go of the closeness that drags you down — kindly. Where a friendship consistently pulls you toward sin, normalises the forbidden, or leaves you spiritually worse — the “blower of the bellows” whose smoke harms you even passively (Bukhari 5534) — step back from its intimacy. This is not cruelty: you may still wish them well, treat them justly, invite them to good, and pray for them, while no longer letting them form your heart. There is a difference between the people you are kind to and those you allow to shape you — and guarding that line is an act of care for your own soul, not betrayal.

Friendship in Islam is not incidental but formative: “a man follows the religion of his close friend, so let each consider carefully who he takes as a friend” (Abu Dawud 4833). The Prophet’s ﷺ parable of the musk-seller and the bellows-blower (Bukhari 5534) captures it — good company benefits you even passively, bad company harms you even when you intend no harm. Choose your companions deliberately, knowing they are shaping you; keep close the one who is good for your deen, the “seller of musk” the Quran urges you to sit with (18:28); and let go, kindly, of the closeness that drags you down — wishing them well and treating them justly while no longer letting them form your heart. To choose your intimates wisely is one of the most consequential things you can do for your soul, because the company you keep is quietly deciding the religion and character you will end up with.

Frequently Asked Questions

What does Islam say about friendship?

Islam treats friendship as formative, not incidental. The Prophet ﷺ said, “a man follows the religion of his close friend, so let each of you consider carefully who he takes as a friend” (Abu Dawud 4833, Tirmidhi 2378). Your companions quietly shape your values, habits, and character — drawing you toward Allah ﷻ or away from Him. This is why the tradition treats the choosing of close friends as one of the most consequential decisions a person makes, to be approached with deliberate care rather than left to chance.

Who should you keep as close friends in Islam?

The friend who is good for your deen and character: who reminds you of Allah ﷻ when you forget, encourages you toward good and restrains you from wrong, whose company leaves you better rather than worse, and who is truthful, loyal, and sincere. The Prophet ﷺ called such a person the “seller of musk” whose good scent you catch (Bukhari 5534), and the Quran commands, “keep yourself patiently with those who call upon their Lord morning and evening, seeking His Face” (18:28). Such friends are among the greatest of blessings.

Is it okay to end a friendship in Islam?

Yes, when a closeness consistently drags you toward sin, normalises the forbidden, mocks your faith, or leaves you spiritually worse — the “blower of the bellows” whose smoke harms you even passively (Bukhari 5534). Stepping back from such intimacy is self-preservation the Prophet ﷺ himself counselled. It does not mean cruelty: you may still wish them well, treat them justly, invite them to good, and pray for them, while no longer letting them form your heart. There is a difference between the people you are kind to and those you allow to shape you.

What is the parable of the musk-seller and the blacksmith?

The Prophet ﷺ said, “The example of a good companion and a bad companion is like that of the seller of musk and the blower of the bellows. The seller of musk will either give you some, or you will buy some, or you will smell a good scent from him; but the blower of the bellows will either burn your clothes, or you will smell a foul odour from him” (Bukhari 5534). It teaches that good company benefits you even passively — you catch its scent — while bad company harms you even when you intend no harm, which is why choosing companions carefully matters so much.

Does letting go of bad company mean being unkind?

No — there is an essential difference between the people you are kind to and the people you allow to form your heart. You can maintain good character toward everyone — wishing them well, treating them justly, inviting them to good, praying for them — while no longer taking as an intimate someone whose influence drags you down. Letting go of a harmful closeness is not cruelty or arrogance but an act of care for your own soul, exactly as the Prophet ﷺ counselled when he said to consider carefully who you take as a close friend (Abu Dawud 4833).

Share