(43) باب وُفُودُ الأَنْصَارِ إِلَى النَّبِيِّ صلى الله عليه وسلم بِمَكَّةَ وَبَيْعَةُ الْعَقَبَةِ
Narrated 'Ubada bin As Samit:
I was one of the Naqibs who gave the ('Aqaba) Pledge of Allegiance to Allah's Messenger (ﷺ) . We gave the pledge of allegiance to him that we would not worship anything other than Allah, would not steal, would not commit illegal sexual intercourse, would not kill a person whose killing Allah has made illegal except rightfully, would not rob each other, and we would not be promised Paradise jf we did the above sins, then if we committed one of the above sins, Allah will give His Judgment concerning it.
Reference: Sahih al-Bukhari 3893
In-book reference: Book 63, Hadith 119
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 5, Book 58, Hadith 233