God uses the encouragement of the Scriptures, the hope of our ultimate salvation in glory, and the trials that He either sends or allows to produce endurance and perseverance.