It is narrated from Hazrat Abu Shahm (may Allah be pleased with him) that once in Madinah Munawwarah, a slave girl passed by me and I caught her by her side. The next day, the Noble Prophet (peace and blessings be upon him) began to take allegiance from the people, and I also presented myself. But the Noble Prophet (peace and blessings be upon him) did not take allegiance from me and said, "Are you the one who pulled the slave girl?" I submitted, "By Allah! I will never do such a thing again." Thereupon, the Noble Prophet (peace and blessings be upon him) also took allegiance from me.
Hadith Referenceمسند احمد / مسند الأنصار رضي الله عنهم / 22511