The hadith do not teach hatred of polytheists as such; the texts about fighting address a particular war with the Quraysh, and scholars differ over how widely they apply, while the Qur'an and Sunnah command justice and kindness to those who do not fight.
- The texts usually cited are Qur'an 9:5, the hadith 'I have been ordered to fight the people' (Sahih al-Bukhari 25; Sahih Muslim 22) and the judgement on Banu Qurayza.
- Most commentators place these in the setting of treaty-breaking and war, and the same surah gives protection to a polytheist who asks for it (9:6).
- Qur'an 60:8 to 9 separates those who fought the Muslims from those who did not, and commands kindness and fairness to the latter.
- Scholars differ on whether the cause of fighting is disbelief or hostility; the majority and most contemporary scholars hold it to be hostility.
Introduction
The question assumes that the Hadith teach hatred of polytheists, and that this is hard to square with Islam as a religion of peace. It is a fair challenge, and the answer begins with the texts themselves. Some are hard sayings about war with the pagan Arabs of Makkah; others, from the same sources, command kind treatment and justice for non-Muslims. This answer sets out both groups, the historical setting and the readings of classical and contemporary scholars, and notes where they differ.
The word 'polytheists' (mushrikun) in the Qur'an refers mainly to the idol-worshipping Arabs who persecuted the early Muslims, drove them from Makkah and fought them at Badr, Uhud and the Trench. The Jews and Christians are addressed as People of the Book, a separate category in the Qur'an and in law.
The texts that seem to command hostility
The first is the so-called Verse of the Sword:
فَإِذَا انسَلَخَ الْأَشْهُرُ الْحُرُمُ فَاقْتُلُوا الْمُشْرِكِينَ حَيْثُ وَجَدتُّمُوهُمْ وَخُذُوهُمْ وَاحْصُرُوهُمْ وَاقْعُدُوا لَهُمْ كُلَّ مَرْصَدٍ ۚ فَإِن تَابُوا وَأَقَامُوا الصَّلَاةَ وَآتَوُا الزَّكَاةَ فَخَلُّوا سَبِيلَهُمْ
When the sacred months have passed, kill the polytheists wherever you find them, seize them, besiege them and lie in wait for them at every place of ambush; but if they repent, establish prayer and give zakat, let them go their way (Qur'an 9:5).
The second is the hadith: 'I have been ordered to fight the people until they testify that there is no god but Allah and that Muhammad is the Messenger of Allah, establish the prayer and give the zakat' (Sahih al-Bukhari 25; Sahih Muslim 22). The third is the judgement on the Jewish tribe of Banu Qurayza after the Battle of the Trench, in which the fighting men were put to death. Other reports are cited as showing aversion, such as the Prophet's (saw) instruction not to be the first to greet Jews and Christians with the salam (Sahih Muslim 2167), and the Qur'anic command to disassociate from the practice of the polytheists (60:4). These are the texts that critics read as hatred, and each must be read in context.
The context of Surah al-Tawba and the rest of the verse
Surah 9 was revealed after the Makkans broke a treaty. Verse 9:4 immediately before the Verse of the Sword excludes those polytheists who had kept their treaties and not supported anyone against the Muslims, and tells the Muslims to fulfil their agreements with them to the end of their term. Verse 9:7 asks how there can be a covenant with polytheists who do not keep faith, except those with whom treaties were made at the Sacred Mosque. The following verse reads:
وَإِنْ أَحَدٌ مِّنَ الْمُشْرِكِينَ اسْتَجَارَكَ فَأَجِرْهُ حَتَّىٰ يَسْمَعَ كَلَامَ اللَّهِ ثُمَّ أَبْلِغْهُ مَأْمَنَهُ
And if any one of the polytheists seeks your protection, grant it to him so that he may hear the words of Allah, then escort him to a place of safety (Qur'an 9:6).
Al-Tabari, Ibn Kathir and al-Qurtubi understood the passage as addressed to those polytheists with whom war existed, and explain 9:6 as showing that a polytheist who asked for safe conduct must be protected and not forced to convert. The opening of 9:5 also states the condition on which fighting stops: if they repent, they are let go, and this refers to the end of hostility. The Qur'an elsewhere states that there is no compulsion in religion (2:256), and that if the enemy inclines to peace, the Muslims must incline to it (8:61).
The hadith 'I have been ordered to fight the people'
Scholars have read this hadith in different ways. Ibn Hajar al-Asqalani, in Fath al-Bari, reports that al-Khattabi and others held that 'the people' (al-nas) here means the idol-worshipping Arabs, since the People of the Book may keep their religion on payment of the jizya, according to the Qur'an (9:29). On this reading the hadith concerns a war already begun, and ending with the entry of the Arab polytheists into Islam or into treaty. Others, such as the Hanafi jurists, say that the hadith is about those who fight, and that the Prophet (saw) forbade killing of those who do not fight, as stated in the report on women and children.
A second view is reported from the Shafi'i school, that the cause of fighting is disbelief itself, and that the hadith sets out a general duty to fight unbelievers until they accept Islam or pay the jizya. The majority of jurists, including the Hanafis, Malikis and Hanbalis, and in particular Ibn Taymiyya in al-Siyasa al-Shar'iyya and Ibn al-Qayyim in Zad al-Ma'ad, held that the cause is aggression (harb), because those who do not fight, such as monks and women, may not be killed. Contemporary scholars including Wahbah al-Zuhayli, Muhammad Abu Zahra and Yusuf al-Qaradawi follow the second view and treat the classical rulings on offensive war as the politics of their age, when states were at war by default. The two positions differ, and a fair answer must say so.
Banu Qurayza
The Jews of Banu Qurayza, who had a pact with the Prophet (saw), were besieged after the Battle of the Trench because they had broken it while Madinah was under attack. They surrendered on the judgement of Sa'd ibn Mu'adh (ra), a leader of their former allies the Aws, who ruled that the fighting men be killed and the rest taken captive (Sahih al-Bukhari and Sahih Muslim, in the chapters on military expeditions). The Prophet (saw) is reported to have said that Sa'd had judged by the judgement of Allah. The historical setting was treason during war, and the sentence is described by the sources as given on the basis of their own scripture's law for treason. The details, including the number executed, come largely from the biography of Ibn Ishaq as transmitted by Ibn Hisham, and they have been questioned. Barakat Ahmad, in Muhammad and the Jews: A Re-examination (1979), argued that the number is exaggerated and that the story needs closer examination. W. Montgomery Watt, a non-Muslim historian, accepted that some executions took place and explained them in terms of treason in a war for survival. The event is about betrayal in war, and not the Jews' religion, since other Jewish tribes were treated differently.
As the hadith about a polytheist mother shows, the Prophet's (saw) approach to those who did not fight was not hostility.
Kindness and justice to those who do not fight
The same sources contain a firm command to justice:
لَّا يَنْهَاكُمُ اللَّهُ عَنِ الَّذِينَ لَمْ يُقَاتِلُوكُمْ فِي الدِّينِ وَلَمْ يُخْرِجُوكُم مِّن دِيَارِكُمْ أَن تَبَرُّوهُمْ وَتُقْسِطُوا إِلَيْهِمْ ۚ إِنَّ اللَّهَ يُحِبُّ الْمُقْسِطِينَ
Allah does not forbid you from being kind and just to those who have not fought you over religion or driven you from your homes. Indeed, Allah loves those who act justly (Qur'an 60:8).
The next verse (60:9) forbids taking as allies only those who fought the Muslims, expelled them and helped to expel them. Many commentators, including al-Tabari, report that 60:8 was revealed about Asma' bint Abi Bakr (ra), whose mother came to her as a polytheist and whom the Prophet (saw) told to keep good relations with her (Sahih al-Bukhari 2620; Sahih Muslim 1003). The Prophet (saw) stood for the funeral of a Jew as it passed (Sahih al-Bukhari 1312), and warned that whoever kills a person under a covenant (mu'ahad) will not smell the fragrance of Paradise (Sahih al-Bukhari 3166). Some early scholars, such as Qatada, are reported to have said that 60:8 was abrogated by 9:5, and al-Tabari rejected this, as did later scholars, holding that the verse remains in force.
The Qur'an does speak of disassociation (bara'a) from polytheistic belief and practice, as in 60:4 about Ibrahim and his people. Scholars distinguish disliking a belief or deed from hatred of persons, and an inner disapproval of false belief from mistreatment of those who hold it. The Qur'an adds that hatred of a people must not lead to injustice (5:8).
How scholars read the matter today
Some contemporary scholars, including Salafi writers who stress al-wala' wa'l-bara', emphasise the duty to disassociate from disbelief and its symbols, and they hold that the believer must not take unbelievers as close allies in religion (5:51). Others, such as Abdullah bin Bayyah, in his work on peace, the Marrakesh Declaration (2016) on the rights of religious minorities, and the Amman Message, emphasise the covenant of Madinah and the duty to protect minorities. The difference is largely about what the texts mean for relations in a modern world of nation states, and nearly all mainstream scholars today hold that fighting is lawful only against those who fight, and under the rules of war.
Conclusion
The hadith and verses cited as teaching hatred of polytheists concern a war with the Makkans, and the texts that state their limits, such as 9:4 and 9:6, give protection to those who do not fight. The Qur'an and Sunnah command justice and kindness to non-combatants (60:8, 5:8). Scholars differ over whether the cause of fighting is disbelief or aggression, and the majority hold it to be aggression.
References
Qur'an 2:256, 5:8, 5:51, 8:61, 9:4 to 9:7, 9:5, 9:29, 60:4, 60:8 to 9
Sahih al-Bukhari 25, 1312, 2620, 3166; Sahih Muslim 22, 1003, 2167
Ibn Hajar al-Asqalani, Fath al-Bari; al-Tabari, Jami' al-Bayan; Ibn Kathir, Tafsir al-Qur'an al-Azim; Ibn Taymiyya, al-Siyasa al-Shar'iyya; Ibn al-Qayyim, Zad al-Ma'ad
Barakat Ahmad, Muhammad and the Jews: A Re-examination (New Delhi, Vikas, 1979); W. Montgomery Watt, Muhammad at Medina (Oxford, 1956)
Wahbah al-Zuhayli, Athar al-Harb fi al-Fiqh al-Islami; the Marrakesh Declaration (2016)