I have a question regarding sahih al-Bukhari 3329.
It states that Prophet Muhammad (PBUH) said: ‘If a man has sexual intercourse with his wife and gets discharge first, the child will resemble the father, and if the woman gets discharge first, the child will resemble her.’
Through modern science we learn that it is not the order of who gets discharge during intercourse first, but through genes. A woman also does not contain any genes in her discharge so a women producing discharge has no effect on the gender of a baby. I am a bit confused, can you please explain to me how this statement is correct.