One of the most important principles Islam teaches regarding companionship is that friendship always leads somewhere. It either draws a person closer to Allah or slowly pulls them away. There is no static middle ground.
Allah commands His Messenger ﷺ:
وَاصْبِرْ نَفْسَكَ مَعَ الَّذِينَ يَدْعُونَ رَبَّهُم بِالْغَدَاةِ وَالْعَشِيِّ يُرِيدُونَ وَجْهَهُ ۖ وَلَا تَعْدُ عَيْنَاكَ عَنْهُمْ تُرِيدُ زِينَةَ الْحَيَاةِ الدُّنْيَا ۖ وَلَا تُطِعْ مَنْ أَغْفَلْنَا قَلْبَهُ عَن ذِكْرِنَا وَاتَّبَعَ هَوَاهُ وَكَانَ أَمْرُهُ فُرُطًا
“And keep yourself patient [by being] with those who call upon their Lord in the morning and the evening, seeking His countenance. And let not your eyes pass beyond them, desiring adornments of the worldly life, and do not obey one whose heart We have made heedless of Our remembrance and who follows his desire and whose affair is ever [in] neglect.”
(Qur’an 18:28)
One lesson from this ayah is that righteous companionship requires intentional commitment. Sometimes such people may not appear impressive by worldly standards, but their hearts are alive with remembrance of Allah and they are dedicated to worshipping Allah. Being patient with them protects the soul.
A righteous friend is one of the greatest blessings Allah can place in a person’s life. They are a mercy before punishment, a reminder before heedlessness, and a support during weakness.
The Prophet ﷺ described the impact of good companionship with clarity and wisdom:
مَثَلُ الْجَلِيسِ الصَّالِحِ وَجَلِيسِ السَّوْءِ كَحَامِلِ الْمِسْكِ وَنَافِخِ الْكِيرِ
“The example of a good companion you sit with and an evil companion is like the seller of musk and the blacksmith's bellows (or furnace)…”
[Sahih al-Bukhari 2101]
The seller of musk benefits you even if no words are exchanged. Just being near him leaves a pleasant trace. Likewise, righteous friends influence without force. Their consistency encourages prayer. Their manners teach patience. Their fear of Allah instills caution.
Such friends do not shame you for shortcomings, but they also do not make excuses for sin. They advise sincerely and with mercy because they love for you what they love for themselves.
Islam teaches that righteous companionship is not only beneficial in this life, but also in the Hereafter. Friends who loved one another for the sake of Allah will remain together when all other relationships collapse.
The Prophet ﷺ said:
سَبْعَةٌ يُظِلُّهُمُ اللَّهُ فِي ظِلِّهِ يَوْمَ لَا ظِلَّ إِلَّا ظِلُّهُ … وَرَجُلَانِ تَحَابَّا فِي اللَّهِ اجْتَمَعَا عَلَيْهِ وَتَفَرَّقَا عَلَيْهِ
“Seven are those whom Allah will shade on the Day when there is no shade but His… two people who love one another for the sake of Allah, they meet upon that and part upon that.”
[Sahih Muslim 1031a]
This is an honor beyond description. Friendship rooted in obedience becomes a source of divine protection on the most terrifying Day humanity will face.
In contrast, evil companionship is one of the most dangerous threats to faith. It rarely appears harmful at first. It begins subtly—with tolerance of sin, jokes about religion, delays in prayer, and excuses for disobedience, leading a person not only to sin but even to exit the fold of Islam.
Over time, the heart changes, and with change of heart comes the change or seizing of actions.
Allah warns clearly:
يَا أَيُّهَا الَّذِينَ آمَنُوا لَا تَتَّخِذُوا بِطَانَةً مِّن دُونِكُمْ لَا يَأْلُونَكُمْ خَبَالًا
“O you who believe, do not take as close companions those outside your ranks who will not spare you any ruin.”
(Qur’an 3:118)
Evil companions do not need to openly call to disbelief. Their danger lies in making sin feel light and obedience feel extreme. And we can learn that through the Hadith on Jibreel ﷺ being shown Jahannam, seeing the path to it filled with desires and means that lead to ruin.
The Qur’an vividly portrays the regret of those who followed corrupt companionship:
وَيَوْمَ يَعَضُّ الظَّالِمُ عَلَىٰ يَدَيْهِ يَقُولُ يَا لَيْتَنِي اتَّخَذْتُ مَعَ الرَّسُولِ سَبِيلًا
يَا وَيْلَتَىٰ لَيْتَنِي لَمْ أَتَّخِذْ فُلَانًا خَلِيلًا
“And the Day the wrongdoer will bite his hands, saying, ‘I wish I had taken a path with the Messenger. Woe to me! I wish I had not taken so-and-so as a close friend.’”
(Qur’an 25:27–28)
This regret is intense, personal, and irreversible. The companions who once felt like support become the very cause of destruction.
One may ask the question whether every person who does not follow the path Allah set for mankind will lead to destruction. Often times people befriend certain people and they may argue that they never tell them to do anything against Allah.
It is important to understand that one does not have to command something to someone but their mere presence will develop habits and those habits can be destructive. And at the end of the day, why does anyone think that opposing the Prophet ﷺ will lead a person to anything except destruction. Keep in mind, he is the one who got Wahi from Allah, and Allah knows His creation the best.
Befriending corrupt individuals leads to serious and lasting harm:
- Gradual abandonment of prayer
- Loss of modesty and shame
- Mockery or belittlement of religious commitment
- Hardening of the heart
- Isolation from righteous people
- Hatred and blame on the Day of Judgment
Allah states:
الْأَخِلَّاءُ يَوْمَئِذٍ بَعْضُهُمْ لِبَعْضٍ عَدُوٌّ إِلَّا الْمُتَّقِينَ
“Close friends on that Day will be enemies to one another, except for the righteous.”
(Qur’an 43:67)
Every friendship built upon sin will collapse into blame and hatred. Only those built upon taqwa will endure.
Islam does not ask Muslims to live without joy or companionship. Rather, it teaches to choose safe hearts to walk alongside. A friend who fears Allah is not restrictive; they are protective.
The Prophet ﷺ warned clearly:
الرَّجُلُ عَلَىٰ دِينِ خَلِيلِهِ فَلْيَنْظُرْ أَحَدُكُمْ مَنْ يُخَالِلُ
“A person follows the religion of his close friend, so let one of you look carefully at whom he befriends.”
[Sunan Abī Dāwūd]
This is not a light warning. It is a principle that determines one’s direction in life and in the grave.
We ask Allah to protect us from all evil, to surround us with righteous companions and make us of those who are righteous, Ameen!
Empty space, drag to resize
لَا تَجِدُ قَوْمًا يُؤْمِنُونَ بِاللَّهِ وَالْيَوْمِ الْآخِرِ يُوَادُّونَ مَنْ حَادَّ اللَّهَ وَرَسُولَهُ
“You will not find a people who believe in Allah and the Last Day having affection for those who oppose Allah and His Messenger.”
—[Qur’an 58:22]
Empty space, drag to resize