Ubada bin Samit reported,

I am one of the chiefs who pledged allegiance to the Messenger of Allah ﷺ. He said, "We pledged to him that we would not associate anything with Allah, nor commit adultery, nor steal, nor take a life that Allah has forbidden except by right, nor plunder, nor disobey. Paradise will be ours if we uphold this. But if we fall short in any of it, the matter is left to Allah."Ibn Rumh's wording was, "Its judgment was left to Allah."

Muslim 4464

Sahih

حدثنا قتيبة بن سعيد حدثنا ليث ح و حدثنا محمد بن رمح أخبرنا الليث عن يزيد بن أبي حبيب عن أبي الخير عن الصنابحي

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

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

مسلم 4464صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Legal punishments
Chapter
Hadd punishments are expiation for those who receive them
Numbering
Darussalam 4464
Muslim 4464