Abdullah bin Umar reported,

I heard the Messenger of Allah ﷺ forbid qaza.Ubaydullah said, I asked, "What is qaza?"Ubaydullah gestured to us and said, "It is when a boy's head is shaved and a tuft of hair is left here, and here, and here." Ubaydullah pointed to the front of his head and to both sides.Ubaydullah was asked, "Does this apply to both the girl and the boy?"He replied, "I do not know. He only said 'the boy.'"Ubaydullah said, I went back to him and asked again, and he said, "As for leaving hair on the forelock and the back of the neck for a boy, there is no harm in that. But qaza is to leave hair on the forelock with no hair elsewhere on the head, and likewise on this side of the head and that."

Bukhari 5920

Sahih

حدثني محمد قال أخبرني مخلد قال أخبرني ابن جريج قال أخبرني عبيد الله بن حفص أن عمر بن نافع أخبره عن نافع مولى عبد الله أنه سمع

ابن عمر رضي الله عنهما يقول

سمعت رسول الله ﷺ ينهى عن القزع قال عبيد الله قلت وما القزع فأشار لنا عبيد الله قال إذا حلق الصبي وترك ها هنا شعرة وها هنا وها هنا فأشار لنا عبيد الله إلى ناصيته وجانبي رأسه قيل لعبيد الله فالجارية والغلام قال لا أدري هكذا قال الصبي قال عبيد الله وعاودته فقال أما القصة والقفا للغلام فلا بأس بهما ولكن القزع أن يترك بناصيته شعر وليس في رأسه غيره وكذلك شق رأسه هذا وهذا

البخاري 5920صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Clothing
Chapter
Qaza
Numbering
Darussalam 5920
Bukhari 5920