It is narrated on the authority of Ibn 'Abbas that some persons amongst the polytheist had committed a large number of murders and had excessively indulged in fornication. Then they came to Muhammad (ﷺ) and said: Whatever you assert and whatever you call to is indeed good. But if you inform us that there is atonement of our past deeds (then we would embrace Islam). Then it was revealed: And those who call not unto another god along with Allah and slay not any soul which Allah has forbidden except in the cause of justice, nor commit fornication; and he who does this shall meet the requital of sin. Multiplied for him shall be the torment on the Day of Resurrection, and he shall therein abide disgraced, except him who repents a believes and does good deeds. Then these! for the Allah shall change their vices into virtues. Verily Allah is Ever Forgiving, Merciful (xxv. 68-70). Say thou: O my bondsmen woo have committed extravagance against themselves despair not of the Mercy of Allah I Verily Allah will forgive the sins altogether. He is indeed the Forgiving, the Merciful (xxxix. 53).
Hadith Referenceصحيح مسلم / كتاب الإيمان / 122
Hadith Gradingمحدثین:أحاديث صحيح مسلم كلها صحيحة
Hadith Takhrij«أحاديث صحيح مسلم كلها صحيحة ، أخرجه البخاري في ((صحيحه)) في التفسير، باب: قوله تعالى: ﴿ قُلْ يَا عِبَادِيَ الَّذِينَ أَسْرَفُوا عَلَىٰ أَنفُسِهِمْ لَا تَقْنَطُوا مِن رَّحْمَةِ اللَّهِ ۚ إِنَّ اللَّهَ يَغْفِرُ الذُّنُوبَ جَمِيعًا ۚ إِنَّهُ هُوَ الْغَفُورُ الرَّحِيمُ ﴾ برقم (4532) وابوداؤد في ((سننه)) فى الفتن والملاحم، باب: في تعظيم قتل المؤمن برقم (4274) مختصراً، من غير ان يذكر القصة ۔ وأخرجه النسائي في ((المجتبى)) 226/7 في التحريم، باب: تعظيم الدم ۔ انظر ((التحفة)) برقم (5652)»
Hadith Commentary:Benefits and Issues: In order to understand the meaning of the hadith, it is necessary to read the verses that come after these two verses, so that it becomes clear that through repentance (accepting Islam is also repentance from disbelief and polytheism), all sins are forgiven.
Source: Tuhfat al-Muslim: Commentary on Sahih Muslim, Page: 322
Narrated Ibn `Abbas: Some pagans who committed murders in great number and committed illegal sexual intercourse excessively, came to Muhammad and said, "O Muhammad! Whatever you say and invite people to, is good: but we wish if you could inform us whether we can make an expiration for our (past evil) deeds." So the Divine Verses came: 'Those who invoke not with Allah any other god, not kill such life as Allah has forbidden except for just cause, nor commit illegal sexual intercourse.' (25.68) And there was also revealed:-- 'Say: O My slaves who have transgressed against their souls! Despair not of the Mercy of Allah.' (39.53)
Shaykh Abdul Sattar al-Hammad
Hadith Commentary: ➊ The meaning of this verse is certainly not that, relying on Allah’s mercy and forgiveness, one should continue to commit sins freely, pay absolutely no heed to His commands and obligations, and trample His limits mercilessly. To invite His wrath and retribution in this way while hoping for His mercy and forgiveness is utter foolishness and delusion. Such people should remember that just as He is Forgiving and Merciful (Ghafur wa Rahim) to His servants, He is also Mighty and Possessor of Retribution (Aziz Dhul-Intiqam) for the disobedient.
➋ In any case, there are two conditions for Allah’s pardon: First, one must turn towards Him (make tawbah), and second, one must fulfill His commands. Then, the proclamation of pardon from Allah is general. Therefore, one should hasten to benefit from this proclamation of Allah as soon as possible. Furthermore, this address is not only for the polytheists of Makkah, but its ruling is general for every non-Muslim and sinner.
Source: Hidayat al-Qari: Commentary on Sahih Bukhari, Urdu, Page: 4810