The Lord now bade Moses put his hand into his bosom and take it out again, and when he took it out, behold, his hand was leprous, as white as snow. And God bade him put his hand into his bosom again, and it turned again as his other flesh. Beside being a chastisement for his hasty words, the plague on his hand was to teach him that as the leper defiles, so the Egyptians defiled Israel, and as Moses was healed of his uncleanness, so God would cleanse the children of Israel of the pollution the Egyptians had brought upon them.
Moses' Hand Turned Leprous When He Doubted Israel's Faith
Legends of the Jews 4:209