Ruling on shaving the head

A: It is permissible for a man to shave his head, especially when necessary. The Messenger (peace be upon him) granted his permission to do this, and he said to the person who left tufts of hair after shaving his head: Have your hair all shaved or leave it without shaving. (Related by Ahmad) Moreover, he (peace be upon him) ordered the mother of the children of Ja`far ibn Abu Talib (may Allah be pleased with him) to shave his children's heads when it was necessary.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.