On the prohibition against shaving only part of the head and the permission for a man, but not a woman to shave it all

Riyad as-Salihin (The Meadows of the Righteous)

by Imam Nawawi

295. Chapter: On the prohibition against shaving only part of the head and the permission for a man, but not a woman to shave it all

1638. Ibn 'Umar said, "The Messenger of Allah, may Allah bless him and grant him peace, forbade shaving part of the head." [Agreed upon]

1639. Ibn 'Umar said, "The Messenger of Allah, may Allah bless him and grant him peace, saw a boy who had shaved part of his hair and left part of it and he forbade that, saying, 'Shave it all or leave it all.'" [Abu Dawud]

1640. 'Abdullah ibn Ja'far reported that the Prophet, may Allah bless him and grant him peace, delayed going to the family of Ja'far for three days and then he came to them and said, "Do not weep for my brother after today.' Then he said, 'Summon my brother's children for me.' We were brought as if we were chicks. He said, 'Call a barber for me.' He instructed him to shave our heads." [Abu Dawud]

1641. 'Ali said, "The Messenger of Allah, may Allah bless him and grant him peace, forbade a woman to shave her head." [an-Nasa'i]