The meaning of this hadith: “Fear Allah and be just between your children.”
This hadith is sahih (authentic). Imam al-Bukhari and Muslim narrated it from Nu’man bin Bashir. He says that his father gave him a slave. His mother said: I will not be pleased until the Messenger of Allah ﷺ bears witness to it. So Bashir bin Sa’d came to the Messenger of Allah ﷺ and informed him about what he had done. The Messenger of Allah ﷺ said: “Have you given each one of your children the like of what you gave Nu’man?” He said: No. So the Messenger of Allah ﷺ said:
“Fear Allah and be just between your children.”
This is evidence that when giving a gift one should give preference to none of one’s children, nor single anyone out; all of them are his children and good treatment is expected from each of them. Therefore it is not permissible to leave some out and single out others for gifts.
However, the scholars differ on this issue as to whether the children should be treated equally, so that a son is equal to a daughter, or whether the son should be given preference over the daughter, as in inheritance.
The people of knowledge have two opinions, and the preponderant opinion is that a gift is like inheritance: equality is achieved by giving a son the equivalent of two daughters, because this is the division that Allah the Exalted has set in inheritance, and Allah the Exalted is just. Therefore a believer, when giving gifts to his children, should also do as would be done if he were to leave them behind after his death.
This is the matter of justice with regard to them and with regard to their parents. However, it is the responsibility of parents to give to the children according to the rule of «لِلذَّكَرِ مِثْلُ حَظِّ الْأُنثَيَيْنِ» (for the male, the equivalent of two females). In this way the division between them will be just and equitable, just as Allah the Exalted has done in inheritance, and He is more just than the mother and father.