Ubada bin Samit reported,

He had witnessed Badr and was one of the chiefs on the night of Uqba. He reported that the Messenger of Allah ﷺ, with a group of his companions around him, said, "Pledge allegiance to me that you will not associate anything with Allah, you will not steal, you will not commit adultery, you will not kill your children, you will not utter slander that you have fabricated between your hands and your feet, and 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 is with Allah. If He wills, He forgives him, and if He wills, He punishes him."So we pledged allegiance to him on that.

Azami 12322

Sahih

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

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

الأعظمي 12322صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Virtues of Surah Baqarah
Section
His saying, "Say, come, I will recite what your Lord has prohibited to you. That you not associate anything with Him, and to parents good treatment, and do not kill your children out of poverty. We will provide for you and them. And do not approach immoralities, what is apparent of them and what is concealed. And do not kill the soul which Allah has forbidden except by right. That is what He has instructed you with."
Numbering
Jami al-Kamil 12322 (2nd edition)
Azami 12322