Romans 15:4

New International Version Bible (NIV)
For everything that was written in the past was written to teach us, so that through the endurance taught in the Scriptures and the encouragement they provide we might have hope.

Read Romans 15:4 in other translations