I extended my hand to the Prophet ﷺ when I was a young boy so that he would take my pledge of allegiance, but he did not accept my pledge.
أخبرنا عبد الرحمن بن محمد بن سلام قال حدثنا عمر بن يونس عن عكرمة بن عمار
مددت يدي إلى النبي ﷺ وأنا غلام ليبايعني فلم يبايعني
Its chain of transmission is sahih. It is in Kubra, hadith 7806.