He considered the reproach of the Christ to be greater wealth than the treasures of Egypt, because he was looking ahead to the reward.
In context
24By faith Moses, when he had grown up, refused to be called the son of Pharaoh’s daughter. 25He chose to be mistreated with the people of God rather than to enjoy the fleeting pleasures of sin. 26He considered the reproach of the Christ to be greater wealth than the treasures of Egypt, because he was looking ahead to the reward. 27By faith he left Egypt behind, not fearing the king’s anger; he endured, as one who could see the invisible. 28By faith he instituted the Passover and the sprinkling of blood, so that the destroyer of the firstborn would not touch the firstborn of Israel.