We see Moses going through a very difficult time period. He was confronted by arguing Israelites, complaints about food and water, a very real dangerous situation. How did Moses respond? In his aggravation he did what seemed the most reasonable thing, or at least the thing that was most ready at hand, when he struck the rock to bring out water. Of course, we see then that Moses is brought face to face with his troubles becoming worse. He is told by the Lord that he will not be entering the promised land because he did not glorify God. How did Moses respond to this? We don't know anything about his immediate reaction, but the very next thing we see him doing is going about the business of arranging safe passage for his people.
Here's a great example of manly leadership. Moses knows his days as leader are numbered. He has sinned and will pay the penalty for his sin. So what does he do? He does his duty, knowing that the same God who calls him to account for his sin is the God who graciously can and will bring the people of Israel into possession of the promise he has given. Moses knew the Lord before whom he was repenting. He knew the promises that God has given are promises which God will fulfill. He knows now that the Lord doesn't leave his people out in the desert to perish of thirst and hunger.
We likewise can depend on our Lord and Savior to accomplish what He has promised.