Assalam alaikum
Main Principles:a- Quran and Sunnah must be understood according to Arabic langauge after gathering all narrations together as one narration may explain another.
b- In case a hadeeth or an Ayah is proven authentic then we find it contradicting a fact or a sensible event that is agreed on, we reconsider our understanding of the text because an authentic text cannot contradict a fact or agreed on truth.
Scientific Facts:a. The egg is always the carrier of the X chromosome (X).
b. The spermcell of a man is the carrier of X and Y chromosomes. [i.e. It carries man and women chromosome].
c. a. Determining the gender of children depends solely on the chromosome of the spermcell of the man.
d. The combination of the "X" chromosome of the woman with the chromosome "Y" of the man creates a boy(xy). However, if the "X" chromosome of the woman combine with the chromosome "X" of the man creates a girl (xx).
e. "Y" is manly while X is womanly.
The hadeeth" ماء الرجل أبيض وماء المرأة أصفر . فإذا اجتمعا، فعلا مني الرجل مني المرأة ، أذكرا بإذن الله . وإذا علا مني المرأة مني الرجل ، آنثا بإذن الله
قَالَ الْيَهُودِيُّ لَقَدْ صَدَقْتَ وَإِنَّكَ لَنَبِيٌّ ثُمَّ انْصَرَفَ فَذَهَبَ . فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " لَقَدْ سَأَلَنِي هَذَا عَنِ الَّذِي سَأَلَنِي عَنْهُ وَمَا لِي عِلْمٌ بِشَىْءٍ مِنْهُ حَتَّى أَتَانِيَ اللَّهُ بِهِ "
http://sunnah.com/muslim/4#38The True Translation:
The water of the man is white and the water of the woman is yellow. When they get together, if the semen of the man become above the semen of the woman, the child is male, by the permession of Allah, and if the semen of the woman becomes above the semen of the woman, the child is a female by the permession of Allah.
The Jew said: What you have said is true; verily you are an Apostle. He then returned and went away. The Messenger of Allah (may peace be upon him) said: He asked me about such and such things of which I have had no knowledge till Allah gave me that.
Study of the Hadeeth:a. As we know that women has no role in deciding the gender of the child when fertilization takes place and the text appears to state something that seem to contradict this fact, we need to resort to laid down principles in order to guideline our understanding. This principle state that in such case, we reconsider our understanding to the texts. How? I will explain it in the following point.
b. It is important to pay attention to the used words in the hadeeth. The key words we would like to highlight (I will translate the words of the text litterally to explain it further).
Notes:a- The word above here means "dominant" as this is one of the known meaning of the word "above" and has been used in Quran to mean "dominant and controlled".
b. The first half of the hadeeth referred to the man and woman liquids as "water" while in the second half he became more specific as referred to it as "semen".
c. We already know that the Prophet صلى الله عليه وسلم mentioned in other hadeeths that the "water" of women is involved in process of fertilization. Then we realized that this water has a description that does not befit ejaculated fuilds since ejaculated fluids are white in color whereas he described the color as yellow and thin.
d. The sound understanding of this text is that the Prophet صلى الله عليه وسلم was referring in this hadeeth to the male and female chromosome of the spermcell of the man (X as the female chromosome and Y as the male chromosome). Based on this, the Prophet meant that when the male factor is dominant then it is a boy but when the female factor is domionant then it is a girl. This is what science states and this is the sound understanding that one should have beacuse the text can be understood in various ways and we know that authentic texts must be in agreement with agreed on facts.
e- He didn't know about that except what Allah told him.
what may be the cause of misunderstanding is that it is because when people "understood" it, they assumed that the word "semen " used in this hadeeth refer to man and woman' water mentioned earlier while as a matter of fact, he صلى الله عليه وسلم was referring to the semen of the man only which is always a carrier of male and female chromosomes. This is supported by the fact that the word "semen" is always exclusively for men while women liquid is always called water only.
In short, it seems according to the words and structure of what was stated, that the issue of "dominance" is purely in targeting the dominance of x chromosome (female) and y chromosomes (male), particularly because women are scientifically not classified as having "sperm".
And Allah knows the best !
http://comparativreligion.blogspot.com/2013/02/re-hadeeth-on-sex-determination-genetics.html