Sahih al-Bukhari 3892
Ishaq bin Mansur narrated to me that Ya'qub bin Ibrahim informed us. The nephew of Ibn Shihab told us, reporting from his uncle Ibn Shihab. He said: Abu Idris A'idhullah bin Abdullah told me that Hazrat Ubadah bin Samit (ra) was among those who took part in Badr with the Messenger of Allah (saw), and also among those of his Companions (ra) who were present on the night of Aqabah. He told him that the Messenger of Allah (saw) said, while a group of his Companions (ra) was around him at that time: “Come, pledge allegiance to me on this: that you will not associate anyone with Allah, nor steal, nor commit adultery, nor kill your children, nor commit any slander which you fabricate yourselves, and that you will not disobey me in what is good. So whoever of you fulfils his pledge, his reward rests with Allah. And whoever falls short in any of it and is punished for it in this very world, that will be an atonement for him for the punishment of the Hereafter. And whoever commits any of these sins and then Allah covers it up, his matter rests with Allah. If He wishes, He will punish him, and if He wishes, He will pardon him.” Hazrat Ubadah (ra) said: So we pledged allegiance to him on these things.
AI-translated by Islam-Today
Book 43: The deputation of the Ansar to the Prophet (saws) at Makkah, and the Al-Aqaba