Read all the articles on Encouragement in Prayer. God is a God of encouragement.
Consider David in the Old Testament who many times was discouraged. In 1 Samuel 30:6 it says: And David was greatly distressed; … grieved, … but David encouraged himself in the LORD his God.