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."

Azami 5192

Sahih

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

أن رسول الله ﷺ قال: اللهم ارحم المحلقين. قالوا: والمقصرين يا رسول الله؟ قال: اللهم ارحم المحلقين. قالوا: والمقصرين يا رسول الله؟ قال: والمقصرين.

الأعظمي 5192صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Hajj
Chapter
Description of the Hajj of the Prophet ﷺ as narrated by Jabir and others, and the rulings mentioned therein
Section
Supplication of the Prophet ﷺ for those who shaved their heads with mercy three times and for those who trimmed once
Numbering
Jami al-Kamil 5192 (2nd edition)
Azami 5192