Sahih Bukhari Volume 5, Book 58, Hadith Number 233.

Narated By ‘Ubada bin As Samit : I was one of the Naqibs who gave the (‘Aqaba) Pledge of Allegiance to Allah’s Apostle. 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.