the Prophet (ﷺ) forbade qaza' which means that the head of a boy is shaved and a lock is left.

Sunan Abi Dawud Book 35, Hadith 36