Ubada bin Samit reported,

I am one of the chiefs who pledged allegiance to the Messenger of Allah ﷺ. We pledged to him that we would not associate anything with Allah, nor steal, nor commit fornication, nor kill a soul whose killing Allah has forbidden, nor seize plunder, nor disobey, and that Paradise would be ours if we upheld this. If we fell short in any of it, the matter would be left to Allah.

Bukhari 6873

Sahih

حدثنا عبد الله بن يوسف حدثنا الليث حدثنا يزيد عن أبي الخير عن الصنابحي

عن عبادة بن الصامت رضي الله عنه قال

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

البخاري 6873صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Blood money
Chapter
His saying, "And whoever saves one"
Numbering
Darussalam 6873
Bukhari 6873