Imām an-Nawāwī, may Allāh have mercy upon him said:
Shaving the hair of the newborn on the seventh day is mustahab . Our aśhāb said:
It is mustahab to give śadaqah in the form of gold in accordance to the weight of the hair. Otherwise, in the form of silver. With regard to this, there is no difference for boys and girls.
Such was mentioned by our aśhāb. They sought dalīl from the Hadīth narrated by Mālik, al-Baihaqī and others as a mursal hadīth from Muhammad Bin ‘Alī Bin al-Husain who said:
وَزَنَتْ فَاطِمَةُ بِنْتُ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ شَعْرَ حَسَنٍ وَحُسَيْنٍ وَزَيْنَبَ وَأُمِّ كُلْثُومٍ فَتَصَدَّقَتْ بِزِنَةِ ذَلِكَ فِضَّةً
Fātimah, the daughter of the Messenger of Allāh, Salutations of Allāh and His Peace upon him, determined the weight of the hair of Hasan, Husein, Zainab and Ummu Kulthum and she made śadaqah in the form of silver by that weight.
Al-Baihaqī narrated a marfū’ hadīth from a narration of ‘Alī, may Allah be pleased with him:
أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَمَرَ فَاطِمَةَ أَنْ تَتَصَدَّقَ بِزِنَةِ شَعْرِ الْحُسَيْنِ فِضَّةً
That the Prophet of Allāh, Salutations of Allāh and His Peace upon him, instructed Fātimah to make śadaqah of silver with the weight of the hair of al-Husain.
There is a weakness in the chain of this narration. In another weak narration:
تَصَدَّقُوا بِزِنَتِهِ فِضَّةً فَكَانَ وَزْنُهُ دِرْهَمًا أَوْ بَعْضَ دِرْهَمٍ
Make śadaqah of silver with its weight! Then it’s weight is a dirham or part of a dirham.
Note that this hadīth, which was narrated through many tarīqahs (transmissions) all mentioned by al-Baihaqī, is in agreement with giving sadaqah in the form of silver by its weight. Nothing is mentioned with regard to gold, contrary to what is mentioned by our aśhāb.
Allāh knows best.
Qn: Does one carry out shaving before slaughtering (of sheep etc i.e. ‘aqīqah) ?
With regard to this are two wajhs (opinions of the aśhāb). The more śahīh of the two, which is affirmed by the author (ash-Shirāzī), al-Baghawī, al-Jurjānī and others is that carrying out shaving after slaughtering is mustahab. There is an indication (isyārah) towards this in the Hadīth. The second wajh is that it being carried before slaughtering is mustahab. This is affirmed by al-Mahāmilī in the Muqni’. Ar-Rūyānī made tarjīh of it and cited it from a nāś of Asy-Syāfi’ī.