Understanding Friendship and Loyalty in Islam
Before looking at specific teachings, it's important to understand what we mean by "friendship" in an Islamic context. The Quranic verses that caution against befriending non-Muslims use the Arabic word "awliya" (plural of wali) in many places. Awliya can mean close allies, protectors, or intimate friends, those you are deeply loyal to. It doesn't just mean casual acquaintances or ordinary friends you hang out with. In simple terms, Islam differentiates between being kind and friendly with everyone and taking someone as a close ally who influences your life and religion. Muslims are encouraged to be good and fair to all people, but they are warned not to give their deepest loyalty and trust to those who would lead them away from their faith.
Another key term is "wala'", meaning loyalty or allegiance. Islam teaches that a Muslim's strongest loyalty should be to God, the Prophet, and the community of believers. This doesn't mean Muslims can't have genuine friends who follow a different religion. Rather, it means a Muslim shouldn't join in actions or support causes against Islam or support wrongdoing, even if a friend asks. Loyalty in Islam is ultimately about values and faith. So a Muslim can be a good friend to a non-Muslim, but if that friend pressures them to do something against Islam (like worshipping an idol or doing something clearly wrong), the Muslim should stay loyal to Islam first. In day-to-day life, this rarely stops people from being friends, it just means a Muslim should wisely choose close companions who have good character and won't drag them into bad behavior.
It's also worth noting that Islam places great emphasis on good character, honesty, and kindness in all relationships. Muslims are taught to have good manners with neighbors, classmates, coworkers, and even strangers. The Prophet Muhammad (ﷺ) said, "Whoever believes in Allah and the Last Day, let him treat his neighbor well." He did not say the neighbor has to be Muslim. The Prophet (ﷺ) also taught that we should wish for others what we wish for ourselves, and he showed mercy to everyone. This basic understanding sets the stage: Islam does not tell Muslims to be cold or harsh to non-Muslims. On the contrary, Muslims are supposed to be examples of upright character to all humans. With that in mind, let's look at the specific Quran verses that people often bring up about befriending non-Muslims, and what they really mean.
Quranic Guidance on Relations With Non-Muslims
The Quran, which Muslims believe is the word of God, gives guidance on how to deal with non-Muslims. Some verses, if taken alone, might sound like Muslims shouldn't be friends with non-believers at all. But other verses clearly say to be kind and just with those of other faiths. To understand properly, we have to look at all the verses together and also know the context in which they were revealed. Below, we list many Quranic verses related to this topic and explain them. You will see that Islam distinguishes between times of hostility (when others are fighting the Muslims) and times of peace. The caution is against aligning with those at war with Islam or those who might harm the Muslim community, not against being friendly with peaceful non-Muslims.
Verses Cautioning Against Close Alliance or Loyalty
In certain verses, the Quran warns believers not to take non-believers as protectors or intimate allies over believers. These verses were often revealed at times when the young Muslim community was under threat or pressure. They emphasize not to prefer the friendship of those hostile to Islam over the companionship of fellow Muslims. Here are some of the key verses:
O you who believe! Do not take disbelievers as allies instead of believers. Do you wish to give Allah a clear case against yourselves? (Quran 4:144)
This verse tells Muslims not to prefer loyalty to disbelievers over loyalty to other believers. It doesn't mean every non-Muslim is an enemy; it means a Muslim shouldn't side with opponents of Islam against his own community. If a Muslim in the Prophet's time secretly sided with opposing idol-worshippers instead of supporting the Muslims, it would be a serious betrayal. The verse asks rhetorically if someone wants to invite God's anger by doing that. In simple terms: Don't betray your fellow Muslims or your faith by taking hostile non-believers as your close allies.
Another verse in the Quran says:
O you who believe! Do not take the Jews and the Christians as allies. They are [in fact] allies of one another. And whoever is an ally to them among you - then indeed, he is one of them. Surely, Allah does not guide the wrongdoing people. (Quran 5:51).
On the surface, this verse sounds very strict about Jews and Christians. However, many scholars clarify that "allies" (awliya) here means forming an alliance that compromises the Muslim community's interests or faith. Historical context is important. This verse came at a time of tension and warfare. According to classical commentary, it was revealed after the Battle of Uhud, when the Muslims of Madinah had suffered losses. A few Muslims expressed that they might seek protection from powerful Jewish or Christian tribes if another battle happened. The Quran reminded them not to do that, not to seek patronage from others instead of standing together as Muslims. Imam Ibn Kathir, a famous scholar, mentioned this context in his tafsir (Quran explanation) for this verse. In essence, the Quran was telling Muslims to support each other rather than turn to outsiders for protection out of fear. It was not telling Muslims to mistreat Jews or Christians in general. We know this because elsewhere the Quran praises some Jews and Christians for their faith and friendship, and because the Prophet (ﷺ) himself maintained treaties and respectful relations with them, as we'll discuss later.
Another verse uses the term "bitanah" which means an intimate inner circle or confidant:
O you who believe! Do not take outsiders as your intimate [bitanah], for they will not spare any effort to ruin you. They desire to see you in trouble. Hatred has already appeared from their mouths, but what their hearts conceal is far worse. (Quran 3:118)
Bitanah literally refers to the inner lining of a garment, implying someone very close to you (like the phrase "inner circle"). Imam Al-Qurtubi explained that this verse forbids taking as close confidants those non-believers who were seeking to harm the Muslim community. At that time in Madinah, there were some individuals from outside (and some hypocrites within) who pretended to be friendly but actually wanted to undermine the Muslims. The Quran warns: don't be naive and confide in those who have enmity in their hearts. In today's terms, we might say: "Don't naively share your secrets or take advice from someone who actively wishes you harm." It's a protection, not a ban on casual friendship. In normal situations, most non-Muslims around us are not plotting to ruin us! This verse was talking about specific people with bad intentions.
The Quran also addresses situations where even family ties are tested by faith:
O you who believe! Do not take your fathers and your brothers as allies if they prefer disbelief over belief. And whoever among you allies with them - they are the wrongdoers. (Quran 9:23).
This sounds harsh, why would the Quran tell believers not to take their own father or brother as an ally? This was revealed in a very specific context. In the early days of Islam, some families were split by faith: for example, a son became Muslim while his father remained a polytheist opposing Islam. In some cases, those family members fought on the opposite side in battles against the Muslims. This verse told the believers that if it comes down to a conflict where your own relatives are fighting against your religion, you should not support them over the truth. It was not telling people to hate their family. In fact, Muslims are taught to love and respect their parents. But if the parents were actively trying to make them abandon Islam or were waging war on Muslims, the believers had to stand with their faith. This was a painful reality for some of the Prophet's companions: they had to meet their own relatives in battle. The Quran guided them to prioritize religion over tribal or family loyalty in that extreme situation. This doesn't really apply to normal family relationships in peace, Muslims can love their non-Muslim parents or siblings wholeheartedly, so long as there's no persecution or war involved.
One more verse often cited is:
You will not find a people who believe in Allah and the Last Day having affection for those who oppose Allah and His Messenger, even if they were their fathers or their sons or their brothers or their relatives. (Quran 58:22)
This verse describes the strength of a true believer's loyalty to God. Even if a loved one "opposes Allah and His Messenger" (meaning they are actively fighting or insulting Islam), a sincere Muslim cannot feel true affection for the cause of those who are enemies to what they love (their faith). It does not say Muslims cannot have any affection for a non-Muslim person at all. It specifically says "those who oppose Allah and His Messenger", in other words, those who are enemies of the religion, attacking it with hatred. If someone is peacefully following their own religion and not mocking or fighting Islam, they are not in this category. In fact, many Muslims have non-Muslim friends and feel love and care for them as individuals. This verse is about not loving the wrongdoing or hatred that a hostile person has. A Muslim's heart should not be attached to the side of someone who is fighting Islam. Again, in everyday life, most non-Muslims we meet are not fighting Allah or the Prophet, they might just not share our belief, or they might even respect Islam while following a different path. So this verse, like the others, is talking about extreme cases of hostility.
Finally, one verse from the same chapter that we quoted earlier captures the general caution:
O you who believe! Do not take My enemies and your enemies as allies, extending to them affection, while they have disbelieved in the truth that has come to you and driven out the Messenger and yourselves (just because) you believe in Allah, your Lord… (Quran 60:1)
This was revealed about a specific incident: a Muslim companion (Hatib ibn Abi Balta'ah) tried to secretly send a warning letter to the enemy Meccans to protect his family before an upcoming battle. He had personal reasons, but it was seen as a dangerous mistake. Allah sent down this verse chiding any believer who would show love to those who were literally "enemies" of God and the Muslims, those who expelled the Prophet and tortured the believers for believing in One God. It's basically saying: "Don't befriend these particular people who are attacking you and your religion." It certainly does not refer to ordinary neighbors of a different faith who live peacefully with you. Rather, it refers to declared enemies (like the Meccans who were persecuting Muslims at that time).
All these verses above carry a similar message: loyalty and deep friendship should not be given to those who are fighting you because of your faith or who want to pull you away from your faith. They do not say "be rude to everyone who isn't Muslim" and they do not forbid ordinary kindness, collaboration, or friendship in everyday matters. In fact, the Quran now we will see explicitly encourages kindness and fairness towards non-Muslims who pose no harm.
Verses Encouraging Kindness and Justice Toward Non-Muslims
While the Quran warns against alliance in enmity, it is very clear about showing kindness and justice to anyone who is not actively harming or fighting you. One of the most important passages to understand this balance comes from Surah Al-Mumtahanah (Chapter 60):
Allah does not forbid you from being kind and just towards those who do not fight you because of your religion and do not expel you from your homes. Indeed, Allah loves those who act justly. Allah only forbids you from taking as allies those who fight you because of your religion, and drive you out of your homes and aid in your expulsion. And whoever takes them as allies, then it is those who are the wrongdoers. (Quran 60:8-9)
This Quran quote is extremely clear. God tells Muslims that He does NOT forbid them from being good, fair, and kind to non-Muslims who are peaceful. We are only forbidden from close alliance with those who are attacking us or actively persecuting us. In fact, the phrase "Allah loves those who act justly" shows that treating peaceful non-Muslims with fairness and kindness pleases God. The second part repeats the caution: only those who fight you for your faith or drive you out (obviously enemies in a war) are the ones you shouldn't take as friends/allies (in a way that supports their war on you). Even then, notice it doesn't tell Muslims to mistreat them; it just forbids taking them as allies or protectors. This distinction was demonstrated in the Prophet Muhammad (ﷺ)'s life: he was fair even to enemies and always hoped for reconciliation, but he did not take as his close confidants those who were still bent on destroying Islam.
Another verse that highlights justice is:
O you who believe! Stand firm for Allah as witnesses in justice, and do not let the hatred of a people make you act unjustly. Be just; that is closer to piety. And fear Allah, indeed Allah is aware of all you do. (Quran 5:8)
This verse teaches Muslims to never let hatred or conflict lead them to commit injustice against anyone. Even if a Muslim dislikes or has conflict with a certain group, they must still treat them fairly. This directly tells us that even with non-Muslims who may have hostility, a Muslim is not allowed to mistreat them or deny their rights. Justice is a core value. If we must be just with those who might hate us, how about those who don't hate us? Obviously, we should be kind and just with them as well. This shows the beauty of Islamic ethics: a Muslim should do what is right, no matter how the other person feels about him. Good friendship and fair dealing are part of being a good Muslim.
The Quran also holds the possibility that today's enemies might become tomorrow's beloved friends. In the same chapter 60 quoted above, just a verse before the ones we cited, Allah says:
Perhaps Allah will put love between you and those you (now) regard as enemies. And Allah is Most Capable; and Allah is Forgiving and Merciful. (Quran 60:7)
This was telling the early Muslims that although some Meccan pagans were fighting them, one day there could be love and friendship between them. And indeed, this came true when many of those people later embraced Islam or made peace. History showed former enemies becoming warm companions. This verse is a hopeful reminder not to consider enmity permanent, hearts can change. It also implies Muslims should not burn bridges because someone is a non-Muslim; treat them well, and one day they might even embrace Islam or at least become a friend. Many Muslims can relate to this: some person might have been hostile to Islam out of misunderstanding, but through kind interactions with Muslims, they soften and sometimes become Muslims themselves. There is a famous saying that "one of the miracles of Islam is turning enemies into friends."
consider that the Quran even permits a Muslim man to marry a non-Muslim woman if she is from the People of the Book (Jewish or Christian) (see Quran 5:5). Marriage is one of the closest, most loving relationships in life. If Islam allowed marriage with a righteous Jewish or Christian partner, how would it make sense that all friendship is forbidden? It wouldn't. Scholars often mention this point: if friendship and love with any non-Muslim were haram (forbidden), Islam would not have allowed marriage with a non-Muslim spouse. Clearly, the Quran envisions Muslims and non-Muslims living together in families and communities with mutual love and respect. The only restriction is that the Muslim should remain strong in his or her own faith and not be pressured into giving up Islamic beliefs or practices.
To summarize the Quran's guidance: Muslims can befriend non-Muslims, show them kindness, and treat them justly. There is no prohibition on having caring relationships with non-Muslim neighbors, classmates, coworkers, or even family. The Quran does not tell Muslims to sever normal social ties. The caution is only about close alliance that compromises one's faith or supports wrongdoing. As long as a friendship does not lead a Muslim to abandon their values or join in harm, it is permitted. In fact, showing good character and friendship to non-Muslims is a great way to share the message of Islam through actions.
Teachings of Prophet Muhammad (ﷺ) on Friendship
The life and sayings of Prophet Muhammad (ﷺ) further clarify this topic. The Prophet Muhammad (ﷺ) is the role model for Muslims, and his interactions with people of different faiths were marked by compassion, justice, and wisdom. There are many authentic hadith (recorded sayings and actions) that guide Muslims on how to choose friends and how to treat others in society. Let's look at some of the hadith directly related to friendship and dealing with non-Muslims.
Choosing Good Companions
Islam puts great emphasis on choosing good companions who positively influence our faith and character. This is a general teaching for friendships of any kind. The Prophet Muhammad (ﷺ) warned that a person's character can be influenced by their close friends:
The Prophet (ﷺ) said:* A person follows the religion of his close friend; so each one should consider whom he makes a friend. *(Reported by Abu Dawud and At-Tirmidhi)
This hadith means that your friends have a big impact on you. If you befriend someone, you'll start to be influenced by their habits and beliefs. So the Prophet advised that one should be careful to befriend people who will influence you in a good way, ideally those who share or respect your values. This is true whether the friend is Muslim or not. For example, if a Muslim's closest friend does not believe in God and constantly encourages him to skip prayers or do things against Islam, that friendship could endanger the Muslim's faith. On the other hand, if a non-Muslim friend respects your beliefs and has good morals, they might not pull you away from your religion at all. In fact, you might have more in common with a kind non-Muslim than with someone who calls himself Muslim but has bad character. The key is influence and loyalty.
Another narration from the Prophet (ﷺ) gives a vivid example:
The Prophet (ﷺ) said:* The example of a good companion and a bad companion is like that of the seller of musk (perfume) and the blacksmith's bellows. From the perfume seller, you either buy perfume or enjoy a good smell, while the bellows either burn your clothes or you smell a bad odor. *(Sahih Al-Bukhari)
In this famous analogy, the "good companion" (friend) is compared to someone selling perfume, being around them benefits you; you come away smelling nice. The "bad companion" is like a blacksmith's furnace, if you hang around too close, you might get burned or at least leave with a nasty smell. Again, the Prophet did not explicitly say "Muslim vs non-Muslim" here, he said good vs bad. A "bad companion" could be anyone who influences you towards bad deeds, whether they are Muslim or not. A "good companion" could be a pious Muslim friend who reminds you to do right, or even a non-Muslim friend who upholds honesty, kindness, and other virtues and respects your faith. Of course, the best friend according to Islamic teachings is one who helps you get closer to God, and naturally a devoted Muslim would do that best. But Muslims can and do have respectful, beneficial friendships with non-Muslims in many aspects of life (study, work, neighborhood). The Prophet's emphasis is: choose friends wisely. Keep those who encourage your faith close, and be cautious with those who pressure you into disobeying Allah.
There is also a hadith that directly states:
The Prophet (ﷺ) said:* Do not keep company with anyone but a believer and do not let anyone eat your food unless he is pious. *(Reported by Abu Dawud and At-Tirmidhi, graded Hasan)
At first glance, this might sound like it's saying "only be friends with Muslims." But scholars explain it as a strong advice, not an absolute literal rule that you can never be in the same company with a non-Muslim. We know the Prophet (ﷺ) himself associated with non-Muslims at times (as we will see). The wording of this hadith is understood to mean: Do not have an intimate companionship except with a believer, in other words, your closest circle, those who you really "hang out with" regularly and who share meals with you in your home, should ideally be righteous people who share your core beliefs. "Do not let anyone eat your food except one who has Taqwa (piety)" means you should choose to spend your quality time and hospitality on those who are God-fearing and upright, because sharing food is a sign of close friendship. This is advice to prioritize good Muslim friends as your inner circle so they influence you positively. It does not mean you can't invite a non-Muslim coworker for lunch or that you can't have a non-Muslim over for dinner, the Prophet (ﷺ) actually did host non-Muslims. In terms of general friendship, Islam absolutely allows kindness and cordial relations with non-Muslims. In terms of close companionship, the Prophet is guiding Muslims to be careful: the people you are closest to should be those who support your faith. If a non-Muslim friend fits that description (for instance, they respect your prayer times, encourage your ethics, and never tempt you into bad behavior), then some scholars say this restriction wouldn't really apply to them because they are not dragging you down. But if a Muslim's best friend is someone who constantly invites them to drink alcohol or ridicule religious practices, then regardless of that friend's religion, such a friendship is spiritually harmful.
Prophet Muhammad (ﷺ)'s Example of Kindness to Non-Muslims
Perhaps the best way to answer the question of whether Muslims can befriend non-Muslims is to look at the Prophet Muhammad (ﷺ)'s own life. How did he treat non-Muslims around him? He is the best example for Muslims to follow, and his life was full of instances of friendship, treaties, and good relations with non-Muslims, as long as they were not actively hostile. Here are some notable examples:
Kindness to Neighbors: Prophet Muhammad (ﷺ) lived among both Muslims and non-Muslims in Mecca and later in Madinah. In Mecca, many of his neighbors were polytheists who hadn't accepted Islam. A famous story tells that one neighbor used to throw trash in the Prophet's way out of spite. How did Muhammad (ﷺ) respond? He did not retaliate or treat that neighbor harshly. In fact, when that neighbor fell ill, the Prophet went to visit and care for them! This story illustrates that the Prophet showed care for his non-Muslim neighbors despite their unkind behavior. (Muslim scholars commonly narrate this story to show the Prophet's character, although the chain of narration is not in the major hadith books; regardless, it aligns with the Prophet's well-known mercy). What is well-documented is the general teaching he gave: "Angel Gabriel kept advising me about the neighbor until I thought he would make the neighbor an heir (i.e., give them a share in inheritance)." This hadith (in Bukhari and Muslim) shows that neighbors have rights in Islam - all neighbors, not just Muslim neighbors. The Prophet (ﷺ) emphasized caring for neighbors without specifying their religion. Many early Muslims had Jewish or pagan neighbors, and they understood these teachings to apply to everyone.
Visiting and Helping Non-Muslims: There is a beautiful authentic hadith where a young Jewish boy who used to serve the Prophet (perhaps running errands) fell sick. Prophet Muhammad (ﷺ) visited the sick boy out of concern. He gently invited the boy to Islam while visiting him, and the boy ended up accepting Islam before he passed away, to the joy of the Prophet (ﷺ) (recorded in Sahih Bukhari). This story shows that the Prophet did not shy away from interacting kindly with non-Muslims. He cared about their well-being and guided them to truth with gentleness, but he also simply demonstrated good manners by visiting the sick boy. This is a strong example against the idea that Muslims should avoid all friendship. If that were true, the Prophet would not have even interacted with this Jewish child or many others.
Maintaining Family Ties: Prophet Muhammad (ﷺ)'s own beloved uncle, Abu Talib, was not a Muslim (he protected Muhammad but never declared faith in Islam). The Prophet (ﷺ) loved his uncle dearly and grieved that Abu Talib did not accept Islam, but he never cut off relations with him. He stayed loyal and grateful to Abu Talib for all his life. This shows a Muslim can deeply love a non-Muslim relative. The only sadness was the uncle's lack of guidance, but that did not stop the familial love. Another example: Asma' bint Abi Bakr (the daughter of Abu Bakr, and step-sister of Aisha) had a mother who remained a polytheist. Asma's mother was not a Muslim and at one point, she came to visit Asma' in Madinah, hoping for her daughter's help. Asma' was unsure if she should maintain a tie with her non-Muslim mother. She asked Prophet Muhammad (ﷺ) what to do. The Prophet (ﷺ) told her, "Yes, uphold the tie of kinship with your mother." He encouraged her to be a good daughter and treat her mother well, even though her mother hadn't accepted Islam. This incident is recorded in Sahih Al-Bukhari. It also is said to be the background to the verse we quoted (60:8) about Allah not forbidding kindness to those who don't fight you. The Prophet's answer made it clear that having a non-Muslim parent or relative is not a problem - a Muslim must still be a loving, dutiful family member.
Hospitality to Guests of Other Faiths: There was an important event when a Christian delegation from Najran (southern Arabia) visited Prophet Muhammad (ﷺ) in Madinah. Not only did he debate and discuss religion with them respectfully, he also hosted them in his own mosque. According to historical reports, he even allowed them to perform their Christian prayers in the mosque area. The Prophet treated these Christian guests with honor and kindness, even though they didn't agree about religion. This level of tolerance and hospitality shows the Prophet's example of interfaith respect. He did not tell them "leave, I cannot befriend you because you're not Muslim." Quite the opposite - he engaged with them in a friendly way. Many of them did not accept Islam in the end, but they left impressed by his character.
Alliances and Treaties: Prophet Muhammad (ﷺ) made alliances with various non-Muslim groups when it was for a just cause or for peace. In Mecca before his prophethood, he took part in Hilf al-Fudul, an alliance of various tribes (non-Muslims included) to uphold justice and protect the weak. He praised this alliance even after Islam came, saying if he were called to something similar, he would join it again. In Madinah, after migration, the Prophet drafted the Constitution of Madinah, a document that granted mutual rights and obligations to the Muslim and Jewish communities, essentially forming a friendly alliance to defend the city and live in harmony. This treaty described Muslims and Jews as one community in the sense of cooperating for security (while each had freedom of religion). The Prophet honored this agreement and only fought some of those groups years later when they violated the pact and betrayed the Muslims. So initially, they were considered allies. This demonstrates that friendship and alliance with non-Muslims is allowed in Islam as long as it's on righteous, mutually respectful terms. What Islam forbids is joining with others in wrongdoing or against Islam itself.
Mercy in Victory: One of the most powerful examples is how Prophet Muhammad (ﷺ) treated the people of Mecca after he entered the city victorious, following years of persecution by them. Many of those Meccans were not Muslim at that moment, and they had been enemies to him. Yet, the Prophet famously said, "No blame will there be upon you today. Go, for you all are free." He forgave them almost universally. This act of forgiveness turned many of those staunch enemies into friends of Islam. It's often highlighted as an incredible moment of reconciliation. People who expected revenge were instead met with mercy. This shows the Prophet's goal was to win hearts, not to begrudge people for their past. It exemplifies the Quranic hope that former foes might become friends. Indeed, many Meccans, seeing the Prophet's nobility, embraced Islam afterward and became his loyal companions. This historical incident teaches Muslims to be forgiving and kind, hoping to transform enemies into friends through good character.
Protecting Non-Muslim Citizens: The Prophet (ﷺ) gave important teachings about the treatment of non-Muslims who live in a Muslim society (often termed "dhimmis" or "people under protection" in classical texts). He said: "Whoever harms a person under the covenant (a non-Muslim under Muslim rule), harms me, and whoever harms me, harms Allah." This is a strong warning. In another narration, he stated that anyone who unjustly kills a non-Muslim under protection "will not smell the fragrance of Paradise." (Sahih Bukhari). These teachings were meant to make Muslims extremely cautious and respectful regarding the lives, properties, and dignity of non-Muslims living among them. While this is not exactly about casual friendship, it absolutely shows that Islam orders Muslims to value and protect non-Muslim lives and rights. If Islam forbids even harming someone or taking advantage of them just because they believe differently, then how could it forbid basic friendship and kindness? It doesn't. Harming others is forbidden; kindness is encouraged.
From the Prophet's life, we see a clear pattern: he befriended and interacted with non-Muslims in a positive way unless they showed clear aggression. Even then, he often responded with patience first. He only restricted relationships in cases where being close to certain people would mean endangering the Muslim community or losing the purity of faith. His personal servant for years was a young non-Muslim (Anas ibn Malik's younger half-brother was Christian, for instance, and the Prophet kept him in his household until he chose to convert on his own). The Prophet accepted gifts from non-Muslim kings and neighbors. He traded with non-Muslims. In fact, when the Prophet Muhammad (ﷺ) died, his armor was pawned to a Jewish man in exchange for some barley (as mentioned in Bukhari). That means he was doing business with a Jew and even trusted that person enough to leave his armor with him as collateral. All of these actions speak louder than words: ordinary friendship, kindness, social and business relations with non-Muslims are permitted and were practiced by the Prophet.
Scholarly Perspectives on Befriending Non-Muslims
Islamic scholars throughout history, as well as modern scholars, have explained these teachings consistently. There is broad agreement among mainstream scholars that Muslims are allowed to befriend non-Muslims, as long as that friendship does not harm the Muslim's faith or lead to something unethical. Scholars often discuss this under concepts called "al-wala' wa'l-bara'" (loyalty and disavowal). In simple terms, it means a Muslim should be loyal to God and the community of believers, and not join in the cause of those who fight Islam. But some extremists twist this concept to mean "show hate toward all non-Muslims," which is not what mainstream Islam teaches. Renowned scholars make it clear that Islam does not demand hatred or avoidance of non-Muslims. Let's look at a few scholarly insights:
Classical Exegesis (Tafsir): Scholars like Imam Al-Qurtubi and Imam Ibn Kathir wrote tafsirs (commentaries) on the Quran that are widely respected. When explaining verses like 3:118 and 5:51 (the ones about not taking certain friends), these scholars underline that the verses refer to protective allies and intimates in a situation of distrust. Qurtubi noted that Muslims are forbidden from entrusting their affairs or secrets to those who are hostile. This implies the reason is the hostility or scheming, not simply their identity as non-Muslims. Ibn Kathir noted the historical context of verses like 5:51, as we mentioned, and he also cites other verses and hadith that soften any blanket interpretation. Basically, classical scholars never took those verses to mean "don't ever talk to or be nice to non-Muslims." They took it to mean "don't trust or rely on those who might betray you in matters of religion or safety." They also often mention verse 60:8 (be kind and just) to balance the view.
Permanent Committee of Scholars (Fatwa): A group of senior scholars in a well-known Islamic juristic council once issued a formal ruling on this matter. They said: It is permissible for a Muslim to interact with a non-hostile non-Muslim with kindness, to exchange gifts, and to have normal relations, but not to take him as an intimate friend whom you love as you would a fellow believer. In other words, friendship in the sense of general goodwill and help is allowed; the only thing discouraged is a deep emotional loyalty that would make a Muslim support the non-Muslim's wrong actions or prefer them over believers. This fatwa also emphasized that if the non-Muslim is a good person and not opposing Islam, a Muslim can cooperate and befriend them in good things. This is a mainstream scholarly view. Many scholars from different schools of thought concur on this point.
Modern Scholars: Contemporary scholars and Imams often address this question because it comes up frequently, especially for Muslims living in mixed societies. For example, Dr. Muzammil H. Siddiqi, a well-respected Muslim scholar and former President of the Islamic Society of North America, explicitly states: "The Qur'an does not say that non-Muslims cannot be Muslims' friends, nor does it forbid Muslims to be friendly to non-Muslims." He explains that Muslims are allowed to have non-Muslim friends as long as Muslims remain strong in their own faith. He also points out that Islam teaches us to be friendly to all people, and even to be just towards enemies. Another logical point he makes: if Islam forbade any friendship, why would it allow Muslim men to marry Jewish or Christian women? Marriage is based on love and friendship, so that permission itself indicates that friendly relations are allowed. Scholars like Dr. Siddiqi emphasize that the word "wali" (ally/protector) in the Quran is often mistranslated simply as "friend." What is forbidden is a walayah that means giving up your own religious integrity or betraying the Muslim community's welfare. It's not about everyday friendship.
Balanced View of "Awliya": Many modern scholars and teachers teach Muslims this nuance: Islam encourages kindness to all, but reminds Muslims that their closest allegiance is to God and fellow believers. This doesn't create a contradiction in real life. You can be a loyal, practicing Muslim and still have good friends who are not Muslim. You simply shouldn't support anyone in something wrong. For instance, if your non-Muslim friend asks you to help them cheat on an exam or to go partying with alcohol involved, you must politely refuse. But if your non-Muslim friend needs help moving to a new house, or is feeling sad and needs someone to talk to, there is every reason in Islam to be the best friend you can be to them in those matters. Some scholars even say being a wonderful friend and helper to non-Muslims can be a form of dawah (inviting to Islam) through your good manners. When non-Muslims see that a Muslim friend is honest, caring, and principled, they may become curious about Islam or at least develop respect for it. This is how many hearts have gently been guided. The Quran hints at this when it says "It may be that Allah will put love between you and those with whom you have enmity" - love and understanding often come through good conduct.
Rights of Non-Muslims: Islamic scholarship also developed the idea of rights and responsibilities towards non-Muslim citizens. A renowned contemporary scholar, Shaykh Yusuf al-Qaradawi, wrote about the treatment of non-Muslims in an Islamic society. He stresses that non-Muslims are entitled to safety, kindness, and justice under Islamic rule. They should be treated as neighbors and co-citizens, not as enemies, unless they are actively hostile. Another work by scholar Saleh al-Aayed focuses on "The Rights of Non-Muslims in the Islamic World," detailing how Islamic law grants them freedom of worship, protection, and good treatment. These works by scholars show that the spirit of Islamic law is coexistence and compassion. If our scholars are talking about protecting non-Muslims' rights and having cordial relations at the societal level, it's obvious that simple friendship and being a good neighbor is perfectly fine and encouraged.
In all four major Sunni schools of thought (Hanafi, Maliki, Shafi'i, Hanbali), the general view is the same on this topic. There isn't any real disagreement that could be considered major. All schools agree on verses like 60:8-9 permitting kindness, and all agree on forbidding loyalty to those at war with Muslims. They may have discussed minor points like: Can you initiate the greeting of peace to a non-Muslim? Some scholars said it's better to say "Assalam alaikum" (peace be upon you) only in response if a non-Muslim greets you, rather than initiating, based on a specific hadith. Other scholars allow greeting anyone with peace because it is a kind word. These kinds of differences are about etiquette, not about whether friendship is allowed. On core principles, the schools of thought uniformly encourage good relations with non-Muslims. They only caution against imitating religious practices of non-Muslims or celebrating religious festivals that contradict Islamic beliefs, which is more about maintaining religious identity than about friendship per se. In summary, no mainstream Islamic scholar from any school says "you must hate all non-Muslims" or "you can never talk to or befriend a non-Muslim." Those ideas are simply not from the recognized teachings of Islam.
Historical Context and Examples
Understanding the historical context of Quranic revelations and the early Muslim community gives further insight. In Mecca, Muslims were a persecuted minority. The Quranic emphasis there was on patience, forgiveness, and quietly distancing from those who mocked the faith. There was no verse in Mecca telling Muslims not to be friends with non-Muslims, because nearly everyone around them was non-Muslim! In fact, the Prophet's society in Mecca before Islam had many friendships across tribal and religious lines. Some of the Prophet's early supporters were non-Muslims, like his uncle Abu Talib, who, though not Muslim, defended him out of love. Another example is Mut'im ibn Adi, a respected non-Muslim leader in Mecca who, out of friendship and honor, gave protection to Prophet Muhammad (ﷺ) when he returned from the difficult journey to Ta'if. Mut'im ibn Adi remained a non-Muslim, but the Prophet never forgot his kindness. Years later after the Battle of Badr, the Prophet mentioned that if Mut'im (who had died by then) were alive and interceded for the war prisoners, he would free them for Mut'im's sake, showing how much he valued that friendship and loyalty. This is a powerful historical anecdote showing a non-Muslim friend being honored by the Prophet.
In Abyssinia (modern-day Ethiopia/Eritrea), a group of early Muslims took refuge under a Christian king (the Negus). The Prophet (ﷺ) encouraged them to go there specifically because "there is a righteous king under whom no one is oppressed." That Christian king and the Muslims clearly had a friendly relationship; he protected them from their Meccan persecutors. Later, the Negus secretly accepted Islam (according to Islamic sources) but even before that, he was considered a friend and ally. The Prophet even performed funeral prayer for him when he passed away. This shows that friendship and alliance with fair-minded non-Muslims was part of the early Islamic history. The Muslims in Abyssinia lived there peacefully for years, interacting in a positive way with the local Christian community.
When the Muslims moved to Madinah, the context changed: conflicts with certain Jewish tribes (who betrayed treaties) and the pagan Meccan army occurred. Some of the Quranic verses about not taking certain people as allies were revealed in those times of conflict. But even in Madinah, not all non-Muslims were enemies. Many individual Jews and pagans continued to live under Muslim protection. For instance, when a Jewish funeral passed by once, the Prophet (ﷺ) respectfully stood up for the funeral procession. When some companions noted "but he was a Jew," the Prophet responded, "Was he not a human soul?" This profound response taught the companions to respect the humanity of every person, Muslim or not. It's recorded in Sahih Bukhari that the Prophet stood for the funeral of a non-Muslim. This level of respect and empathy is what Muslims are taught to emulate.
Throughout Islamic history, you find examples of friendship and cooperation. In Islamic Spain, Muslims, Jews, and Christians famously at times lived in relative harmony, even forming intellectual friendships and working together in fields of science and philosophy. In the Ottoman Empire, there are letters and accounts of Sultans treating non-Muslim subjects kindly and even non-Muslim advisors working closely with Muslims. While history has its ups and downs, the ideal taught by Islam is that if non-Muslims are peaceful, Muslims must be peaceful and friendly in return. The Quran states: "And if they incline to peace, then incline to it (also) and trust in Allah." (Quran 8:61). So if another group or person offers peace, a Muslim should accept and reciprocate peace. This encourages building friendships across communities rather than conflict.
Bringing It All Together - A Balanced View
When we consider all the evidence, Quran, Hadith, scholarly views, and historical examples, the answer to our main question becomes clear: Yes, Muslims are allowed to befriend non-Muslims. Islam not only allows it but encourages Muslims to be kind, fair, and caring friends, neighbors, and colleagues to people of other faiths. The only type of "friendship" Islam warns against is one that would cause the Muslim to abandon their values or harm the Muslim community. In practical terms, this means:
Muslims should not join in or support any wrongdoing, whether the friend is Muslim or not. For example, if your friend (of any faith) wants you to do something clearly unethical or against Islam (like dishonesty, drinking alcohol, etc.), a good Muslim must politely decline. True friends should respect that.
Muslims should not prefer the companionship of those who hate Islam over those who love Islam. This is just common sense - if someone despises what you stand for, how can they be your closest confidant? But this does not mean every non-Muslim despises Islam. Many non-Muslims respect and even love aspects of Islam or at least love their Muslim friends on a human level. So Muslims can absolutely have close non-Muslim friends who are respectful. It just might require some understanding and boundaries on both sides.
Muslims should show the beauty of Islam through friendships. Being a good friend - honest, supportive, compassionate - is actually part of being a good Muslim. The Prophet Muhammad (ﷺ) taught us to have good manners with everyone. He said the best of people are those with the best character. Muslims believe in treating others as we would like to be treated. So, a Muslim should be the kind of friend to a non-Muslim that they would love to have themselves. This includes helping them in times of need, giving sincere advice, and sharing moments of joy and sorrow.
No Compulsion in Religion: It's important to note that while Muslims can invite friends to learn about Islam (out of love and hope for their well-being), they are strictly forbidden from forcing Islam on anyone. The Quran says, "There is no compulsion in religion" (Quran 2:256). So a friendship with a non-Muslim is not supposed to be based on pressuring them about faith. Guidance comes from God, and a Muslim's duty is simply to be a good example and share knowledge kindly when appropriate. Many friendships flourish with mutual respect - the Muslim respects the other's choice of faith, and the friend respects the Muslim's practices. If over time the friend becomes interested in Islam, that's wonderful, but it should happen naturally and sincerely, not through force or harassment.
Loyalty to Truth: A Muslim's ultimate loyalty is to the truth of Islam. This means if ever a friend (whether Muslim or not) tries to convince them to do something clearly wrong, the Muslim should stick to what is right. Realistically, this is a test in any friendship: sometimes peer pressure leads people to bad choices. Islam equips Muslims with the principle that God comes first. But beyond that, Islam teaches us to be loyal and caring friends in everything that is good.
One might ask, what about feelings like love and affection? Can a Muslim genuinely love a non-Muslim friend? The answer is generally yes, Muslims are humans with hearts, and we naturally develop affection for people we spend good times with, help, and who help us. Islam does not tell us to cut out normal human feelings. The only time a Muslim is cautioned is to not have love for the sake of religion towards someone who is an avowed enemy of God. But you can love a non-Muslim as a person, for example, a Muslim can deeply love his non-Muslim mother or spouse or friend, for the good qualities and kindness they have. Many Muslims have said that their closest friends in school or work were non-Muslims who stood by them and supported them. There is nothing wrong with this. This is where we recall that the Quranic term "awliya" is about alliance and support in a religious or battle context, not about personal fondness. Muslims are even taught to make dua (prayer) for the guidance and well-being of their non-Muslim friends and relatives. Prophet Muhammad (ﷺ) prayed for non-Muslims to be guided, and in the meantime he still cared for their worldly well-being.
Conclusion
So, are Muslims allowed to befriend non-Muslims? In light of everything we've learned: absolutely yes. Muslims are encouraged to form positive, sincere relationships with people around them, whether Muslim or not. Islam is not a faith of isolation or intolerance, it's a faith that calls for engagement, justice, and compassion. The Quran and Hadith teach a balanced approach: be kind and fair to everyone, share friendship and goodness with people of other faiths, but also be careful that your closest loyalty remains with God and goodness. Essentially, hate evil, not people. A Muslim should dislike actions of disbelief or sin, but still show mercy and care to the person, hoping they find truth and goodness. The Prophet Muhammad (ﷺ) demonstrated this by how he lived: he never turned away a person who needed help, regardless of religion. He befriended and helped Jews, Christians, and pagan Arabs, and many of those people eventually embraced Islam precisely because of the profound character he showed.
For us Muslims today, this topic is very relevant. We often live in diverse societies. We have classmates, coworkers, neighbors who follow different faiths or no faith. We share life with them. Islam tells us to engage with a smile and good conduct. The Prophet (ﷺ) said even a smile is charity. By being good friends and good neighbors, Muslims actually obey Allah's command of kindness and also give da'wah (invitation to Islam) by example. If someone has heard false claims that "Muslims will never be your true friend because their religion forbids it," we can firmly say that is a misunderstanding. The Quran forbids betrayal, not friendship. It forbids being loyal to oppression, not loyalty to friends. We can point to verse 60:8 which literally says Allah does not forbid us from kindness toward non-Muslims who are peaceful. We can point to the Prophet's life as a shining example of friendship across faiths.
For Muslim readers, the guidance is: Make good friends, whether Muslim or not, who bring out the best in you. The best friends are those who help you remember to do right. If you have non-Muslim friends, let them see the beauty of Islam through you, your honesty, your reliability, your caring nature. Clear up misconceptions gently if they ask questions about your faith. And remember, maintaining your own Islamic practices (like prayer, dietary rules, etc.) confidently will earn you respect. You might even inspire your friends to join you in learning about Islam. Many people have become Muslim because they had a Muslim friend who impressed them with kindness and integrity.
For non-Muslim readers, we hope this discussion shows that Islam is not telling Muslims to shut you out. If you encounter a Muslim who hesitates to be friendly, it might be due to personal or cultural issues, but it's not because Islam forbids friendship with you. Muslims are actually supposed to be friendly and just. Islam only warns them to be careful of negative influence or supporting any injustice. In today's world, where so much misunderstanding exists, friendship between Muslims and non-Muslims is a bridge that can bring peace and unity. Islam's teachings, when properly understood, advocate for such positive relationships.
In conclusion, the true Islamic stance is that Muslims and non-Muslims can live together in harmony, befriend each other, cooperate in good projects, and share genuine respect and affection. At the same time, Muslims keep their faith principles strong. This balanced approach is one of the beautiful aspects of Islam, it neither promotes blind hatred nor blind assimilation, but a middle path of kindness without compromising values. As Muslims, we believe this approach is the best for individuals and societies. It allows us to witness to the truth of Islam through our behavior while maintaining our identity. By following it, we fulfill our duties to God and spread peace on Earth. And Allah knows best.
Sources
| No. | Source |
|---|---|
| 1 | Muzammil H. Siddiqi, "Does Islam Forbid Befriending Non-Muslims?" - IslamOnline (Fiqh Council of North America). |
| 2 | Imam Ibn Kathir, Tafsir Ibn Kathir (commentary on Quran 5:51, vol. 2 p. 68) - Context of seeking protection after Uhud. |
| 3 | Saleh al-'Ayid, The Rights of Non-Muslims in the Islamic World - Comprehensive study on treatment of non-Muslims. |
| 4 | Yusuf al-Qaradawi, Ghayr al-Muslimeen fi al-Mujtama' al-Islami (Non-Muslims in the Islamic Society) - Scholarly work on coexistence. |
| 5 | Permanent Committee of Scholars (KSA), Fatawa al-Lajnah ad-Da'imah 26/87-89 - Rulings on friendship and kindness towards non-Muslims. |