Good News Translation Everything written in the Scriptures was written to teach us, in order that we might have hope through the patience and encouragement which the Scriptures give us.
Romans 15:4
ESV - 4 For whatever was written in former days was written for our instruction, that through endurance and through the encouragement of the Scriptures we might have hope.
For follow-up discussion and general commentary on the topic. Comments are sorted chronologically.