“And when he was full forty years old, it came into his heart to visit his brethren the children of Israel.”
King James Version (KJV)
7:23 It came into his heart - Probably by an impulse from God.
Ac 7:23-29 And when he was full forty years old, etc. For the accounts here given, see Ex 2:11-15. Compare Heb 11:24. Observe the point of Stephen, that Israel rejected Moses as "a ruler and judge over them" (Ac 7:35), as they had rejected Joseph and Jesus. Yet God chose both Joseph and Moses to be their saviors and rulers.