“By faith he left Egypt, not being afraid of the anger of the king, for he endured as seeing him who is invisible.”
It is possible that the reference to leaving Egypt involves the Exodus rather than his personal escape into the wilderness. Notice the connection here. In both cases, there is a death and then a fleeing into the wilderness. In the first incident, Moses appears to flee the king who is trying to kill him for Moses’ killing of the Egyptian. Moses is in no position to fight the king or his army. In the second incident, Moses leaves Egypt after the death of the firstborn where the king is again trying to kill him.
In the first escape, Moses has no protector but in the second one, he does. There is a major difference between the two events. In the second one, Moses does not run but stands up to the king over and over. What is the difference? On the first occasion, Moses felt alone as his own people did not rise up to help him. On the second occasion, Moses felt the presence of the invisible one and knowing that the king could not hurt him.