Romans 15:4
For whatever things were written before were written for our learning, that through perseverance and through encouragement of the Scriptures we might have hope.
World English Bible (Public Domain)
In context
Before · Romans 15:2–3
2Let each one of us please his neighbor for that which is good, to be building him up. 3For even Christ didn’t please himself. But, as it is written, “The reproaches of those who reproached you fell on me.”
4For whatever things were written before were written for our learning, that through perseverance and through encouragement of the Scriptures we might have hope.