2999 — “Come and pledge allegiance to me that you will not associate anything with Allah, nor steal, nor commit adultery, nor kill your children, nor bring forth any slander that you fabricate between your hands and feet, nor disobey me in what is right. Whoever among you fulfils this, his reward rests with Allah. Whoever commits any of these acts and is punished for it in this world, it will be an expiation for him. And whoever commits any of these acts but Allah conceals it, his matter rests with Allah: if He wills, He will punish him, and if He wills, He will forgive him.”
This is a hadith of ʿUbādah ibn al-Ṣāmit, may Allah be pleased with him, and it is narrated from him through three routes. The first—and most well known—is from Abū Idrīs ʿĀʾidh Allah ibn ʿAbd Allah al-Khawlānī, who was informed by ʿUbādah ibn al-Ṣāmit—one of those who witnessed Badr with the Messenger of Allah, peace and blessings be upon him, and one of his Companions on the night of al-ʿAqabah—that the Messenger of Allah, peace and blessings be upon him, said, while a group of his Companions was around him: “…” He said: “So I pledged allegiance to him on that basis.”
It was recorded by al-Bukhārī (1/54–58, 7/176, 8/518, 12/69–70, and 13/173), the wording being from one of his versions; Muslim (5/127); al-Tirmidhī (1439); al-Nasāʾī (2/182 and 183); al-Dārimī (2/220); and Aḥmad (5/314 and 340). One version adds, after his words, “nor kill your children”: “He recited the verse in which the pledge was taken from the women: ‘When believing women come to you.’” This is a version recorded by Muslim.
The second route is from al-Ṣunābiḥī, from ʿUbādah, in an abbreviated form, with the addition: “And do not plunder.”