Ubada bin Samit reported,

The Messenger of Allah ﷺ said, while a group of his companions were gathered around him, "Pledge allegiance to me that you will not associate anything with Allah, that you will not steal, that you will not commit adultery, that you will not kill your children, that you will not bring forth any slander you have fabricated between your hands and feet, and that you will not disobey in what is right. Whoever among you fulfills this, his reward is with Allah. Whoever commits any of these and is punished for it in this world, that punishment is an expiation for him. And whoever commits any of these and Allah conceals it, his affair rests with Allah. If He wills, He pardons him, and if He wills, He punishes him."So we pledged allegiance to him on these terms.

Azami 8644

Sahih

عن عبادة بن الصامت وكان شهد بدرا، وهو أحد النقباء ليلة العقبة

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

الأعظمي 8644صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Biography of the Prophet ﷺ
Chapter
Mission of the Prophet ﷺ and his life in Makkah
Section
Pledge of Uqba, the first, in the twelfth year of the mission
Numbering
Jami al-Kamil 8644 (2nd edition)
Azami 8644