Romans 15:4

2 Let every one of us please his neighbour for his good to edification.

3 For even Christ pleased not himself; but, as it is written, The reproaches of them that reproached thee fell on me.

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

5 Now the God of patience and consolation grant you to be likeminded one toward another according to Christ Jesus:

6 That ye may with one mind and one mouth glorify God, even the Father of our Lord Jesus Christ.

Do read the surrounding verses too, because the context often says more than a single verse.

Compare

BSB
For everything that was written in the past was written for our instruction, so that through endurance and the encouragement of the Scriptures, we might have hope.
KJV
For whatsoever things were written aforetime were written for our learning, that we through patience and comfort of the scriptures might have hope.
WEB
For whatever things were written before were written for our learning, that through perseverance and through encouragement of the Scriptures we might have hope.
ASV
For whatsoever things were written aforetime were written for our learning, that through patience and through comfort of the scriptures we might have hope.
DARBY
For as many things as have been written before have been written for our instruction, that through endurance and through encouragement of the scriptures we might have hope.
BLB
For as much as was written before was all written for our instruction, so that through endurance and through the encouragement of the Scriptures, we might have the hope.
ÅB
For alt som før er skrevet, er skrevet til vår lærdom, for at vi gjennom tålmod og trøst fra Skriftene skal ha håp.
OTB
For alt som ble skrevet tidligere, ble skrevet til vår lærdom, så vi gjennom utholdenhet og oppmuntring fra Skriftene kan ha håp.
B1930
For alt som før er skrevet, det er skrevet oss til lærdom, forat vi skal ha håp ved det tålmod og den trøst som skriftene gir.

Study notes (Tyndale)

Original text and word study

Cross references