When It Gets Worse Before It Gets Better

How does God deal with Moses’ despondency over his failure in Egypt?

Exodus 5-6