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 certain relationships with non-Muslims often use the Arabic word "awliya" (plural of wali). A wali can mean a patron, protector, guardian, ally, close supporter, or close friend, depending on context. In these verses, the issue is not ordinary kindness, neighborliness, work relationships, or friendly social contact. The warning is against giving someone a kind of protective allegiance, confidential reliance, or religious-political loyalty that compromises a Muslim's faith or harms the Muslim community. 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, classical scholars did not understand it as a command to mistreat Jews and Christians or to cut off all peaceful relations with them. They understood "awliya" here in the sense of protective allegiance, patronage, and intimate loyalty that compromises the believers' faith and security. Historical context is important: Madinah was a treaty-based society facing real military threats, and some people were tempted to rely on outside patrons or hostile allies instead of remaining faithful to the Muslim community. Tafsir works, including Ibn Kathir, cite reports such as the contrast between Ubadah ibn al-Samit, who disavowed unreliable Jewish alliances, and Abdullah ibn Ubayy, who clung to them out of fear, along with reports about people seeking protection after military setbacks. These reports illustrate the point: the Quran was warning Muslims not to place their ultimate security and loyalty in groups whose interests were tied to hostility against the believers. It was not a license to mistreat Jews or Christians in general. We know this because the Quran elsewhere commands justice and kindness to peaceful non-Muslims, recognizes righteousness among some People of the Book, and because Prophet Muhammad (PBUH) maintained treaties, trade, dialogue, and respectful relations with them.
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."
Also consider that the Quran permits a Muslim man to marry a chaste woman from the People of the Book (Jewish or Christian) (see Quran 5:5). Classical Sunni jurists agreed that this permission is for Muslim men, not Muslim women marrying non-Muslim men, and they also discussed conditions and possible discouragement when such a marriage could endanger faith, children, or family life. Still, marriage is one of the closest relationships in life and normally includes affection, mercy, daily companionship, and mutual rights. If every form of affection or friendship with any non-Muslim were forbidden, this Quranic permission would be impossible to understand. The correct conclusion is more balanced: Islam permits normal human affection, kindness, and family bonds with peaceful non-Muslims, while preserving a Muslim's religious identity and forbidding loyalty to disbelief, injustice, or hostility against Islam.
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 is saying "only ever be around Muslims." Scholars generally explain it as guidance about one's chosen intimate companionship, not a ban on every form of company, hospitality, business, study, neighborliness, or family contact with non-Muslims. The wording points to the people a Muslim takes as a regular inner circle and moral influence. Likewise, "do not let anyone eat your food except one who has taqwa" is not a rule that only pious Muslims may ever eat from your food; the Prophet Muhammad (PBUH) hosted and dealt kindly with non-Muslims, and feeding guests, neighbors, and the needy remains part of good character. Rather, the hadith teaches that the people closest to your heart and home should be those who help your faith and character. In the full Islamic sense, taqwa is inseparable from iman, so the hadith still gives priority to righteous believers as one's deepest companions. At the same time, respectful non-Muslim friends, relatives, neighbors, classmates, and coworkers may be treated with warmth and generosity, provided the relationship does not pull a Muslim into sin, religious compromise, or support for wrongdoing.
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 (PBUH) lived among both Muslims and non-Muslims in Mecca and later in Madinah. A popular story says that a neighbor used to throw rubbish in his path and that he visited that neighbor when they fell ill, but this particular story is not established in the reliable hadith collections and should not be quoted as a proven incident. The point it is often used to make, however, is firmly established by authentic teachings: the Prophet Muhammad (PBUH) strongly emphasized the rights of neighbors. He said, "Jibril kept advising me about the neighbor until I thought he would make the neighbor an heir" (Bukhari and Muslim). He also said, "Whoever believes in Allah and the Last Day, let him honor his neighbor" (Bukhari and Muslim). These teachings are general; the neighbor's rights are not limited to Muslims. Many early Muslims had Jewish, Christian, or pagan neighbors, and the jurists understood neighborly kindness, protection from harm, and good conduct to apply to all neighbors.
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; the boy looked to his father, his father told him to obey Abu al-Qasim, and the boy accepted Islam. Prophet Muhammad (PBUH) then praised Allah for saving him from the Fire (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 remembered Abu Talib's protection and loved him as an uncle, while never approving of his disbelief. After Abu Talib died, Prophet Muhammad (PBUH) was not allowed to seek forgiveness for him once Allah revealed the ruling about those who die upon shirk, but the human love, grief, and gratitude he had shown during Abu Talib's life remain clear. This shows that a Muslim can deeply love a non-Muslim relative as a relative, while religious allegiance and ultimate approval remain for faith and truth. Another example: Asma' bint Abi Bakr (the daughter of Abu Bakr and the older half-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: The well-known sira reports about the Christian delegation of Najran state that they visited Prophet Muhammad (PBUH) in Madinah and that he received them, discussed theology with them, and dealt with them respectfully. Some early historians, such as Ibn Ishaq, also report that when the time for their prayer came, he allowed them to pray according to their religion in a part of the mosque. Because this detail comes through sira reporting rather than the strongest hadith chains, jurists differed over what legal rule should be drawn from it about non-Muslims entering mosques or performing their worship there. The broader lesson, however, is well supported: Prophet Muhammad (PBUH) engaged the Christian delegation with dignity, dialogue, and hospitality even though they did not agree with Islam, and they departed under an agreement rather than coercion.
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 (PBUH) treated the people of Mecca after he entered the city victorious, following years of persecution by many of them. The sira reports preserve his merciful words in the spirit of Prophet Yusuf's statement, "No blame will there be upon you today" (Quran 12:92), and the famous declaration, "Go, for you are free." The precise chains for some wording are discussed by hadith scholars, but the historical fact of a broad amnesty at the conquest of Mecca is well known. A small number of people guilty of grave crimes were initially excluded, and several of them were later pardoned as well. People who expected revenge were instead met with mercy. This helped turn many former enemies into supporters of Islam and illustrates the Quranic hope that former foes may become friends through guidance and noble conduct.
Protecting Non-Muslim Citizens: Prophet Muhammad (PBUH) gave stern warnings about the treatment of non-Muslims who live under Muslim protection or treaty (dhimmis and mu'ahids in classical terminology). Sahih Bukhari records that he said: "Whoever kills a mu'ahid shall not smell the fragrance of Paradise," even though its fragrance is perceptible from a great distance. Another well-known report in Sunan Abi Dawud warns against wronging a person under covenant, diminishing his rights, burdening him beyond his capacity, or taking anything from him without his willing consent. These teachings made Muslim jurists extremely cautious about the lives, property, honor, and rights of non-Muslims living among Muslims. While this is not exactly about casual friendship, it clearly shows that Islam orders Muslims to protect non-Muslim lives and rights. If harming or exploiting people because they believe differently is forbidden, then basic kindness, fairness, and neighborly friendship are not only permitted but part of Islamic character.
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. Anas ibn Malik, the Prophet's well-known personal servant for many years, was a Muslim from the Ansar. Separately, Sahih Bukhari mentions a Jewish boy who used to serve Prophet Muhammad (PBUH), and when that boy became ill the Prophet visited him kindly and invited him to Islam. 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): Some contemporary fatwa bodies, including the Saudi Permanent Committee, use stricter wording when the Arabic term muwalah or sadaqah hamimah (intimate loyal friendship) is intended. Their point is that a Muslim must not give religious allegiance, deep partisan loyalty, or approving love to disbelief, nor take hostile non-Muslims as confidants over believers. At the same time, such fatwas commonly allow what the Quran and Sunnah allow: justice, kindness, good neighborliness, lawful dealings, visiting for a legitimate benefit, accepting and giving permissible gifts, and cooperating in what is good with peaceful non-Muslims. So their view should not be misrepresented as "be rude" or "cut off all normal relations." It is a caution about the level of intimacy and loyalty, not a prohibition of decent treatment or peaceful social interaction.
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.
Across the four major Sunni schools (Hanafi, Maliki, Shafi'i, Hanbali), the core principles are shared: kindness and justice toward peaceful non-Muslims are permitted and often required; treachery, oppression, and harming them are forbidden; and religious allegiance or support for those fighting Islam is forbidden. The schools and scholars do differ over some details and terminology. For example, the classical majority relied on the hadith in Sahih Muslim, "Do not initiate the salam with the Jews and Christians," and therefore discouraged or prohibited beginning with the specifically Islamic greeting of salam, while allowing truthful non-religious greetings or responding appropriately. Some later and contemporary scholars allow initiating peaceful greetings when needed for harmony, da'wah, or to avoid harm, especially if the wording is not understood as a distinct religious endorsement. These are differences of etiquette and legal detail, not a license for bad character. Similarly, scholars caution against imitating non-Muslim religious rites or celebrating religious festivals in a way that affirms beliefs contrary to Islam; that is about protecting religious identity, not about refusing ordinary friendship, neighborliness, cooperation, or family kindness.
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), alongside other classical tafsir reports - Contexts of forbidden protective allegiance to hostile or unreliable allies; avoid tying the ruling to one precise page, edition, or one exclusive cause of revelation. |
| 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. |