Sahih al-Bukhari 4810
Ibrahim bin Musa told me that Hisham bin Yusuf informed us that Ibn Juraij told them that Ya'la (bin Muslim) said that Sa'id bin Jubair told him that it is narrated from Hazrat Ibn Abbas (ra) that some of the idolaters had committed murders, and many of them, and had committed adultery, and a great deal of it. They came to Muhammad (saw) and said: What you say and what you call to is certainly good. If only you would tell us whether what we have done will be expiated. Then this verse was revealed: “wal-ladhina la yad'una…”, that is: “And those who call not on any other god along with Allah, nor kill a person that Allah has forbidden except for just cause, nor commit adultery (or fornication)” (Qur’an 25:69). And (this verse) was revealed: “Say, ‘O My servants who have committed excesses against their own souls! despair not of the mercy of Allah’” (Qur’an 39:54).
AI-translated by Islam-Today
Book 1: What has been said about Fãtihat al-Kitab (i.e., the Opening of the Book)