The Talmud (Niddah 30b) teaches us that when a child is in the womb, an angel comes and teaches it the entire Torah, which he subsequently forgets.
The simple reading of the Gemara gives no reason to draw a distinction between male and female. However, I am wondering if there are any sources which do make such a distinction. The reason I would think there could be a distinction is because it is possible the angel teaching them the Torah is connected to their mitzvah of learning Torah, and women do not have the same mitzvah as men (29b), and the Mishna in Sotah (3:4) says that teaching a woman Torah is not such a good thing.
I am looking for sources that make this distinction, or explicitly reject such a distinction. I am not looking for indirect lines of reasoning which would indicate one way or the other. You can ask your own question if you want to find that.