Sahih al-Bukhari 3999
Sahih al-Bukhari · Book 64: Military Expeditions led by the Prophet (pbuh) (Al-Maghaazi) · Chapter
Narrated 'Ubada bin As-Samit:
حَدَّثَنَا أَبُو الْيَمَانِ ، أَخْبَرَنَا شُعَيْبٌ ، عَنِ الزُّهْرِيِّ ، قَالَ أَخْبَرَنِي أَبُو إِدْرِيسَ، عَائِذُ اللَّهِ بْنُ عَبْدِ اللَّهِ أَنَّ عُبَادَةَ بْنَ الصَّامِتِ ، وَكَانَ، شَهِدَ بَدْرًا أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ " بَايِعُونِي " .
(who was one of the Badr warriors) Allah's Messenger (ﷺ) said, "Give me the pledge of allegiance."