Romans 15:4

For whatever was written, was written to teach us, so that, through patience and the consolation of the Scriptures, we might have hope

Other versions

King James Version

For whatsoever things were written aforetime were written for our learning, that we through patience and comfort of the scriptures might have hope.

English Standard Version

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.

New International Version

For everything that was written in the past was written to teach us, so that through endurance and the encouragement of the Scriptures we might have hope.