This is because he decided that if he suffered for the Messiah, it would be worth far more in God’s sight than his owning all the treasures of Egypt that he would receive as Pharaoh’s heir. He decided that because he looked forward to the time when God would give him an eternal reward.