Language:
كتاب مناقب الأنصار
63  
Merits of the Helpers in Madinah (Ansaar)
(43)
Chapter: The deputation of the Ansar to the Prophet (saws) at Makkah, and the Al-Aqaba
(43)
باب وُفُودُ الأَنْصَارِ إِلَى النَّبِيِّ صلى الله عليه وسلم بِمَكَّةَ وَبَيْعَةُ الْعَقَبَةِ
Sahih al-Bukhari 3893

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 118
USC-MSA web (English) reference : Vol. 5, Book 58, Hadith 233
  (deprecated numbering scheme)