Awf bin Malik reported,

We were with the Messenger of Allah ﷺ, nine, or eight, or seven of us, when he said, "Will you not pledge allegiance to the Messenger of Allah?"We had only recently given him our pledge, so we said, "We have already pledged to you, Messenger of Allah."Then he said again, "Will you not pledge allegiance to the Messenger of Allah?"We said, "We have already pledged to you, Messenger of Allah."Then he said a third time, "Will you not pledge allegiance to the Messenger of Allah?"So we stretched out our hands and said, "We have already pledged to you, Messenger of Allah. On what shall we pledge?"He said, "That you worship Allah and associate nothing with Him, that you observe the five prayers, that you obey," and he whispered a word quietly, "and that you ask people for nothing."I later saw some of those men drop a whip from their hand and not ask anyone to hand it to them.

Azami 240

Sahih

عن عوف بن مالك الأشجعي قال

كنا عند رسول الله ﷺ تسعة أو ثمانية أو سبعة. فقال: ألا تبايعون رسول الله؟ وكنا حديث عهد ببيعة، فقلنا: قد بايعناك يا رسول الله! ثم قال: ألا تبايعون رسول الله؟ فقلنا: قد بايعناك يا رسول الله! ثم قال: ألا تبايعون رسول الله؟ قال: فبسطنا أيدينا وقلنا: قد بايعناك يا رسول الله! فعلام نبايعك؟ قال: على أن تعبدوا الله ولا تشركوا به شيئا، والصلوات الخمس، وتطيعوا -وأسر كلمة خفية- ولا تسألوا الناس شيئا فلقد رأيت بعض أولئك النفر يسقط سوط أحدهم، فما يسأل أحدا يناوله إياه.

الأعظمي 240صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Faith in Allah عز وجل
Section
Pledging allegiance to not associating anything with Allah
Numbering
Jami al-Kamil 240 (2nd edition)
Azami 240