Sahih al-Bukhari 1727
Abdullah bin Yusuf narrated to us that Malik told us. He reported from Nafi', he from Hazrat Abdullah bin Umar (ra), that the Messenger of Allah (saw) said: “O Allah, have mercy on those who have their heads shaved.” They said: And on those who have their hair cut short, O Messenger of Allah (saw). He said: “O Allah, have mercy on those who have their heads shaved.” They said: And on those who have their hair cut short too, O Messenger of Allah (saw). He said: “And on those who have their hair cut short too.” And Laith said: Nafi' narrated to me that (he (saw)) said “Rahimallahul muhalliqin” (that is, O Allah, have mercy on those who have their heads shaved) once or twice. And Ubaidullah said that Nafi' narrated to me that the fourth time he said: “Wal-muqassirin” (that is, and on those who have their hair cut short too).
AI-translated by Islam-Today
Book 127: To shave the head and to have the head-hair cut short on finishing the Ihram