Ubada bin Samit reported,

We were with the Messenger of Allah ﷺ in a gathering when he said, "Pledge allegiance to me that you will not associate anything with Allah, that you will not commit fornication, that you will not steal, and that you will not kill any soul whom Allah has forbidden except by right. Whoever among you fulfills this, his reward is with Allah. Whoever commits any of these offenses and is punished for it, that punishment is an expiation for him. And whoever commits any of these offenses and Allah conceals it for him, his affair rests with Allah. If He wills, He will pardon him, and if He wills, He will punish him."

Azami 13539

Sahih

عن عبادة بن الصامت قال

كنا مع رسول الله ﷺ في مجلس، فقال: تبايعوني على أن لا تشركوا بالله شيئا، ولا تزنوا، ولا تسرقوا، ولا تقتلوا النفس التي حرم الله إلا بالحق، فمن وفى منكم فأجره على الله، ومن أصاب شيئا من ذلك فعوقب به فهو كفارة له، ومن أصاب شيئا من ذلك فستره الله عليه، فأمره إلى الله إن شاء عفا عنه، وإن شاء عذبه.

الأعظمي 13539صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Tafsir of Surah Mumtahanah
Section
His saying, "O Prophet, when the believing women come to you pledging to you that they will not associate anything with Allah, nor steal, nor commit adultery, nor kill their children, nor bring forth a slander they have invented between their hands and feet, nor disobey you in what is right, then accept their pledge and ask Allah to forgive them. Indeed, Allah is Forgiving, Merciful."
Numbering
Jami al-Kamil 13539 (2nd edition)
Azami 13539