Hebrews 11:27

27 As a result of his faith, Moses left Egypt. He knew that the king would be angry, but Moses was not afraid of him. Instead, he continued strongly to trust God. Nobody can see God, but Moses lived like someone who could see God.

11:25See Exodus 2:3-12.
11:26God's special Messiah, Jesus Christ, did not come to live on earth until many years after Moses died. But Moses believed that God had a great purpose to save his people. Because of that Moses chose to obey God. He obeyed God even when it caused him a lot of trouble. That was more important than if he became very rich. The writer of this book knew that God had now saved his people because of Jesus' death. That was God's great purpose from the beginning. So that was the true reason why Moses chose to obey God. That was why he received trouble and pain.
11:27Moses left Egypt when he led Israel's people away from that country. See Exodus 12:29-42.