“For whatever things were written before were written for our learning, that through perseverance and through encouragement of the Scriptures we might have hope.”Romans 15:4 · WEBU
Earlier written Scriptures were given for believers' learning, so that perseverance and the Scriptures' encouragement would produce hope.