Romans 15:4
For whatsoever things were written aforetime were written for our learning, that we through patience and comfort of the scriptures might have hope.
The Amplified Classic Version says,
Romans 15:4 AMPC
For whatever was thus written in former days was written for our instruction, that by [our steadfast and patient] endurance and the encouragement [drawn] from the Scriptures we might hold fast to and cherish hope.