The Prophet ﷺ forbade qazaa, the practice of shaving part of a child's head and leaving other parts unshaven.
أخبرنا محمد بن بشار قال حدثنا يحيى قال حدثنا عبيد الله قال أخبرني عمر بن نافع عن نافع
أن النبي ﷺ نهى عن القزع
No references are available.
Muslim recorded it in the book of Clothing, the chapter on the dislike of qazaʿ, no. 113/2120, from the hadith of Yahya bin Saeed Qattan, with the same chain. See also the previous hadith.