Can a Muslim Have Non-Muslim Friends?
Answered by Shaykh Faraz Rabbani
Question
According to Hanafi fiqh, is it permissible to have non-Muslim friends?
How do recognized scholars understand Quran 3:28, Quran 5:51, and the hadith that a man follows the religion of his close friend, and how are they reconciled?
Answer
Yes. Ordinary friendship and good treatment of non-Muslims is permissible, and the verses you mention do not forbid it.
What they forbid is a particular kind of loyalty, not human warmth.
The pivot is a single word: awliya, and the loyalty it names, muwalat.
A “wali” is a primary protector and ally. The scholars of Quranic tafsir explain that the prohibition in these verses is muwalat in its specific sense: taking non-Muslims as allies and protectors against the believers, siding with them where the two communities stand opposed.
It is not a ban on kindness, company, or affection in the ordinary course of life.
This is how the named authorities read it. Imam Tabari, Allah have mercy on him, glosses the alliance in 5:51 as aiding and siding with them against the Muslims, not dealing or associating with them as such.
The Hanafi exegete Imam Jassas, Allah have mercy on him, takes 3:28 and 5:51 the same way in his Ahkam al-Quran: the censure attaches to alliance against the believers.
The contemporary work Maarif al-Quran of Mufti Muhammad Shafi, Allah have mercy on him, states it plainly in 3:28: what is prohibited is the muwalat of love and loyalty that entails supporting against Islam, while courtesy, trade, and good neighborliness remain permitted.
The lexicographer al-Raghib al-Isfahani, in his Mufradat, roots wali and walaya in nearness and allegiance, which is why context decides whether a given tie is the forbidden allegiance or simple goodwill.
The Clear Reconciliation
The decisive reconciliation is the verse that the Prophet’s own conduct embodied.
Allah Most High says, “Allah does not forbid you from those who have not fought against you in religion or expelled you from your homes to be good and kind to them and show them justice: Verily Allah loves the thoroughly just.” [Quran 60:8; Keller, The Quran Beheld]
So the two teachings sit together without strain. The forbidden alliance is in “Let not believers take unbelievers as allies instead of believers.” [Quran 3:28; Keller, The Quran Beheld]
and “O you who believe, take not Jews and Christians as protecting allies… So whoever of you aligns himself with them against you is one of them.” [Quran 5:51; Keller, The Quran Beheld]
The permitted kindness is in 60:8. Note that 5:51 itself names the wrong as the one who “aligns himself with them against you.” That is the muwalat being censured.
Keep the Door of Friendship Open, and Choose Your Inner Circle with Care
The hadith you ask about belongs to a different shelf. The Prophet, Allah bless him and give him peace, said, “A man is upon the religion of his close friend, so let each of you look at whom he befriends.” [Abu Dawud; al-Tirmidhi, who graded it hasan]
This is not a ruling that forbids friendship. It is counsel about influence: the people closest to your heart shape your path.
It helps to think of the company in three widening circles, because the verses and the hadith each speak to a different one. The widest is ordinary company and dealing: colleagues, neighbors, classmates, acquaintances.
Here, kindness and justice are not merely allowed but commanded, as 60:8 makes plain. Next is kinship: a non-Muslim parent or relative keeps the full rights of kinship, and Allah commands good companionship even of parents who call you to other than Islam [Quran 31:15].
The innermost is close companionship, the friend whose values seep into your own. Here, and only here, the Prophet, Allah bless him and give him peace, set faith and godliness as the measure: “Keep none but a believer for a close companion.” [Abu Dawud; al-Tirmidhi]
The first two circles are wide open across faith lines. Only the innermost asks you to choose with your religion in view.
So: befriend, deal well, be just and generous with your non-Muslim friends, as the Sunna itself models, and let such friendship be a means of good and of dawah.
Guard only against an allegiance that would set you against the believers, and choose your closest, most formative companions with your faith in view.
And Allah knows best.
[Shaykh] Faraz Rabbani
Related Answers
Is It Haram to Befriend Non-Muslims? Ustadh Tabraze Azam (checked by Shaykh Faraz Rabbani). Relays Imam Tabari that the prohibition is alliance against the Muslims, not ordinary friendship.
Friendship With Non-Muslims: Explaining Verse 5:51 Shaykh Abdullah Anik Misra. A detailed lexical analysis of wali and walaya and the tafsirs to consult.
What Is the Ruling of Having a Non-Muslim as a Friend and Confidant? Shaykh Yusuf Weltch. Permissible, including confiding, provided the friend does not mock the religion; religious counsel is sought from the people of faith.
Is the Hadith “A Man Follows the Religion of His Friend” Literal? Frames the hadith as counsel about one’s closest company, not a verdict that friendship transfers belief.
Shaykh Faraz Rabbani is a recognized specialist scholar in the Islamic sciences, having studied under leading scholars from around the world. He is the Founder and Executive Director of SeekersGuidance.
Shaykh Faraz stands as a distinguished figure in Islamic scholarship. His journey in seeking knowledge is marked by dedication and depth. He spent ten years studying under some of the most revered scholars of our times. His initial studies took place in Damascus. He then continued in Amman, Jordan.
In Damascus, he was privileged to learn from the late Shaykh Adib al-Kallas. Shaykh Adib al-Kallas was renowned as the foremost theologian of his time. Shaykh Faraz also studied under Shaykh Hassan al-Hindi in Damascus. Shaykh Hassan is recognized as one of the leading Hanafi jurists of our era.
Upon completing his studies, Shaykh Faraz returned to Canada in 2007. His return marked a new chapter in his service to the community. He founded SeekersGuidance. The organization reflects his commitment to spreading Islamic knowledge. It aims to be reliable, relevant, inspiring, and accessible. This mission addresses both online and on-the-ground needs.
Shaykh Faraz is also an accomplished author. His notable work includes “Absolute Essentials of Islam: Faith, Prayer, and the Path of Salvation According to the Hanafi School.” This book, published by White Thread Press in 2004, is a significant contribution to Islamic literature.
His influence extends beyond his immediate community. Since 2011, Shaykh Faraz has been recognized as one of the 500 most influential Muslims. This recognition comes from the Royal Islamic Strategic Studies Center. It underscores his impact on the global Islamic discourse.
Shaykh Faraz Rabbani’s life and work embody a profound commitment to Islamic scholarship. His teachings continue to enlighten and guide seekers of knowledge worldwide.