In the first couple of chapters in Exodus, we read that the Israelites were suffering under the rule of the Egyptians, and the king ordered for all the Hebrew baby boys to be tossed into the Nile.
It was at this time that Moses was born; and he was lovely in the sight of God, and he was nurtured three months in his father’s home. And after he had been set outside, Pharaoh’s daughter took him away and nurtured him as her own son. — Acts 7:20-21
Moses grew up as an Egyptian prince. He would have had comfort, privilege, and power. He would have been very educated as he grew up, probably learning subjects such as reading, writing, arithmetic, and possible many languages.
Moses was educated in all the learning of the Egyptians, and he was a man of power in words and deeds. — Acts 7:22
When Moses was 40 years old, he decided to visit his brethren, the Israelites (Acts 7:23). We aren’t told how Moses knew he was an Israelite, but he did know he was born an Israelite, not an Egyptian.