(127) باب الْحَلْقِ وَالتَّقْصِيرِ عِنْدَ الإِحْلاَلِ
Narrated `Abdullah bin `Umar:
Allah's Messenger (ﷺ) said, "O Allah! Be merciful to those who have their head shaved." The people said, "O Allah's Messenger (ﷺ)! And (invoke Allah for) those who get their hair cut short." The Prophet (ﷺ) said, "O Allah! Be merciful to those who have their head shaved." The people said, "O Allah's Messenger (ﷺ)! And those who get their hair cut short." The Prophet (ﷺ) said (the third time), "And to those who get their hair cut short." Nafi` said that the Prophet (ﷺ) had said once or twice, "O Allah! Be merciful to those who get their head shaved," and on the fourth time he added, "And to those who have their hair cut short."
Reference: Sahih al-Bukhari 1727
In-book reference: Book 25, Hadith 205
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 2, Book 26, Hadith 785