Abdullah bin Umar reported,

The Messenger of Allah ﷺ said, "Allah, have mercy on those who shave their heads."They said, "And those who shorten their hair, Messenger of Allah?"He said, "Allah, have mercy on those who shave their heads."They said, "And those who shorten their hair, Messenger of Allah?"He said, "And those who shorten their hair."Layth said, Nafi narrated to me, "May Allah have mercy on those who shave their heads," once or twice. He said, And Ubaydullah said, Nafi narrated to me that on the fourth time he said, "And those who shorten their hair."

Bukhari 1727

Sahih

حدثنا عبد الله بن يوسف أخبرنا مالك عن نافع

عن عبد الله بن عمر رضي الله عنهما

أن رسول الله ﷺ قال اللهم ارحم المحلقين قالوا والمقصرين يا رسول الله قال اللهم ارحم المحلقين قالوا والمقصرين يا رسول الله قال والمقصرين وقال الليث حدثني نافع رحم الله المحلقين مرة أو مرتين قال وقال عبيد الله حدثني نافع وقال في الرابعة والمقصرين

البخاري 1727صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Hajj
Chapter
Shaving and trimming the hair upon exiting ihram
Numbering
Darussalam 1727
Bukhari 1727