The scholars agree that the gravest sin is associating partners with Allah (shirk), which Allah does not forgive if a person dies upon it, according to 4:48 and 4:116, and the Prophet (saw) named it first among the destructive sins.
- Sahih al-Bukhari and Sahih Muslim list further great sins (kaba'ir) such as disobedience to parents, killing a soul wrongly, false testimony, usury and slander of chaste women, and scholars rank them by degree.
- Al-Dhahabi in al-Kaba'ir and Ibn Hajar al-Haytami in al-Zawajir compiled lists of great sins, while Ibn Taymiyya and others held that there is no fixed number, and that a sin's weight varies with the circumstance.
- No sin, including shirk, is beyond forgiveness for the one who repents before death, for Allah forgives all sins to those who turn to Him (39:53).
- The scholars also warn of despair of Allah's mercy and of feeling secure from His plan as grave faults in themselves.
Introduction
The question asks what the worst sin in Islam is. The scholars answer that the worst sin is shirk, associating partners with Allah, and they support this by the Qur'an and the hadith. They also explain that there are degrees among great sins, that the weight of a sin depends on circumstances, and that Allah's mercy is open to every one who repents. This answer sets out the evidence and the points of difference, so that the believer can understand both the gravity of sin and the extent of mercy.
The Qur'an says: إِنَّ اللَّهَ لَا يَغْفِرُ أَن يُشْرَكَ بِهِ وَيَغْفِرُ مَا دُونَ ذَٰلِكَ لِمَن يَشَاءُ
"Indeed, Allah does not forgive that partners be set up with Him, but He forgives what is less than that for whom He wills." (4:48)
Why shirk is the worst
Shirk means giving to another the right that belongs to Allah alone, such as worship, ultimate trust and the power to benefit or harm. Luqman said to his son that shirk is a great injustice (31:13), since it places the creature in the position of the Creator. Sahih al-Bukhari and Sahih Muslim record that the Prophet (saw) was asked which sin is greatest, and he said: that you make a rival to Allah when He created you. Another report in the two collections, from Abu Bakra (ra), says that the Prophet (saw) asked: shall I tell you of the greatest of the great sins? He named associating others with Allah, disobedience to parents and false speech, and he repeated the last until the Companions wished he would stop. The hadith of the seven destructive sins, in the two collections, begins with shirk, and then names magic, killing a soul that Allah has forbidden except by right, devouring usury, devouring the property of the orphan, fleeing from the battlefield and slandering chaste believing women.
The scholars, including Ibn Taymiyya in al-Istiqama and Ibn al-Qayyim in al-Jawab al-Kafi and Madarij al-Salikin, explain that shirk contradicts the purpose of creation, which is the worship of Allah alone (51:56), and that it destroys the deeds of the one who dies upon it (39:65). The Prophet (saw) said, as in Sahih Muslim, that whoever dies associating anything with Allah will enter the Fire. They also divide it into major shirk (akbar), which takes a person out of the faith, and minor shirk (asghar), such as showing off in deeds, which the Prophet (saw) feared for his community most (Musnad Ahmad, graded hasan by scholars including al-Albani) and which does not remove one from Islam but is a grave sin.
Other grave sins and how they are ranked
The scholars differ on the number of great sins. Ibn 'Abbas (ra) is reported to have said that they are closer to seven hundred than to seven, and in another wording seventy. Al-Dhahabi in al-Kaba'ir lists seventy, and Ibn Hajar al-Haytami in al-Zawajir 'an Iqtiraf al-Kaba'ir lists several hundred, by including sins that the texts threaten with Hell, a curse or a stated punishment. Ibn Taymiyya in Majmu' al-Fatawa says that the definition is a sin with a prescribed punishment in this world, a threat in the next or a curse, and that sins vary within the class. This difference matters little in practice, because every list agrees on the main ones.
Among sins less than shirk, the Qur'an uses the most severe language for the deliberate killing of a believer (4:93), which carries the promise of Hell, anger and curse, and for usury (2:278 to 2:279), in which those who persist are warned of war from Allah and His Messenger. The Prophet (saw) said that the first matter to be judged between people on the Day of Resurrection will be blood (Sahih al-Bukhari and Sahih Muslim). A further group of scholars place the sins of the heart, such as pride and envy, among the great ones. The Prophet (saw) said that no one with an atom's weight of pride in his heart will enter Paradise (Sahih Muslim).
Concerning despair of Allah's mercy and feeling secure from His plan, the Qur'an says that none despairs of the mercy of Allah except the disbelieving people (12:87) and that none feels secure from the plan of Allah except the losing people (7:99). A report from Ibn Mas'ud (ra), cited by Ibn Kathir, names shirk, despair and feeling secure among the greatest sins. The scholars state that the chain of that report is open to discussion, but its meaning agrees with the verses.
The door of repentance
The Qur'an says: قُلْ يَا عِبَادِيَ الَّذِينَ أَسْرَفُوا عَلَىٰ أَنفُسِهِمْ لَا تَقْنَطُوا مِن رَّحْمَةِ اللَّهِ ۚ إِنَّ اللَّهَ يَغْفِرُ الذُّنُوبَ جَمِيعًا
"Say: O My servants who have transgressed against themselves, do not despair of the mercy of Allah. Indeed, Allah forgives all sins." (39:53)
The scholars harmonise this verse with 4:48 in this way. Verse 39:53 concerns those who repent, and 4:48 concerns those who die upon shirk without repentance. A person who leaves shirk and becomes a Muslim has all that went before forgiven, as the Prophet (saw) said in Sahih Muslim that Islam wipes out what came before it. Sahih Muslim also records that Allah says: son of Adam, if you came to Me with sins nearly as great as the earth and met Me not associating anything with Me, I would meet you with forgiveness as great (Jami' al-Tirmidhi, graded hasan, with the wording near the earth). Scholars of the Sunni schools, against the Khawarij and the Mu'tazila, hold that a believer who commits a great sin short of shirk remains a believer and is under the will of Allah, who may forgive or punish him, a position stated by al-Tahawi in his creed (al-'Aqida al-Tahawiyya).
Conclusion
The worst sin, according to the Qur'an and the Sunnah and the agreement of the scholars, is shirk, and it is the one sin that Allah does not forgive for a person who dies upon it. Below it there are degrees, among which the scholars place the killing of an innocent person, usury and disobedience to parents. The door of repentance is open until death, and the believer should hold fear and hope together.
The Prophet (saw) said that Allah accepts the repentance of His servant as long as the death rattle has not reached his throat (Jami' al-Tirmidhi, graded hasan).
References
Qur'an 2:278 to 2:279, 4:48, 4:93, 4:116, 7:99, 12:87, 31:13, 39:53, 39:65, 51:56
Sahih al-Bukhari and Sahih Muslim, Book of Faith and Book of Wills; Sahih Muslim, Book of Faith; Jami' al-Tirmidhi, Book of Supplications and Book of Repentance; Musnad Ahmad, hadith on minor shirk
Al-Dhahabi, al-Kaba'ir; Ibn Hajar al-Haytami, al-Zawajir 'an Iqtiraf al-Kaba'ir; Ibn al-Qayyim, al-Jawab al-Kafi; Ibn Taymiyya, Majmu' al-Fatawa
Al-Tahawi, al-'Aqida al-Tahawiyya