Romans 15:4

For everything that was written in the earlier times was written for our instruction, so that by our patient endurance and through the encouragement the Scriptures bring we might continuously cherish our hope.

Romans 4:23-24

It was not for his sake alone that it was written, "It was credited to him";

Romans 5:3-5

And not only that, but this too: let us continue exulting in our sufferings, for we know that suffering produces endurance,

Romans 8:24-25

For we were saved in such a hope.

Romans 12:12

ever happy in hope, always patient in suffering, ever persistent in prayer,

1 Corinthians 9:9-10

For in the law of Moses it is written, "You must not muzzle an ox that is treading out your grain." Is it that God is concerned about oxen only?

1 Corinthians 10:11

Those things continued to befall them as warnings to others, and they were written down for the purpose of instructing us, in whose lives the climax of the ages has been reached.

2 Timothy 3:16-17

All Scripture is inspired by God, and useful for teaching, for reproof, for correction, for training in doing what is right,

Hebrews 6:10-19

For God is not so unjust as to forget the work you have done and the love you have shown His name in the service you have rendered for your fellow-Christians, and still are doing.

Hebrews 10:35-36

So you must never give up your confident courage, for it holds a rich reward for you.

James 5:7-11

So be patient, brothers, until the coming of the Lord. See how the farmer keeps on waiting and waiting for the precious crop from his land; how he keeps up his patience over it until he gets the early and late rains,

1 Peter 1:13

Therefore, as a means of spiritual preparation, tighten up the belt about your minds, keep perfectly calm, keep your hope on the spiritual blessing to be conferred upon you at the unveiling of Jesus Christ.

2 Peter 1:20-21

because you recognize this truth above all else, that no prophecy in Scripture is to be interpreted by one's own mind,

Treasury of Scripture Knowledge

Summary

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

General references

Bible References

Whatsoever

Romans 4:23
It was not for his sake alone that it was written, "It was credited to him";
1 Corinthians 9:9
For in the law of Moses it is written, "You must not muzzle an ox that is treading out your grain." Is it that God is concerned about oxen only?
1 Corinthians 10:11
Those things continued to befall them as warnings to others, and they were written down for the purpose of instructing us, in whose lives the climax of the ages has been reached.
2 Timothy 3:16
All Scripture is inspired by God, and useful for teaching, for reproof, for correction, for training in doing what is right,
2 Peter 1:20
because you recognize this truth above all else, that no prophecy in Scripture is to be interpreted by one's own mind,

That

Romans 5:3
And not only that, but this too: let us continue exulting in our sufferings, for we know that suffering produces endurance,
Romans 8:24
For we were saved in such a hope.
Romans 12:12
ever happy in hope, always patient in suffering, ever persistent in prayer,
Hebrews 6:10
For God is not so unjust as to forget the work you have done and the love you have shown His name in the service you have rendered for your fellow-Christians, and still are doing.
Hebrews 10:35
So you must never give up your confident courage, for it holds a rich reward for you.
James 5:7
So be patient, brothers, until the coming of the Lord. See how the farmer keeps on waiting and waiting for the precious crop from his land; how he keeps up his patience over it until he gets the early and late rains,
1 Peter 1:13
Therefore, as a means of spiritual preparation, tighten up the belt about your minds, keep perfectly calm, keep your hope on the spiritual blessing to be conferred upon you at the unveiling of Jesus Christ.

General references

Luke 21:19
By your endurance you will win your souls.
John 20:30
Now there are many other wonder-works which Jesus performed in the disciples' presence which are not recorded in this book.
Romans 4:23
It was not for his sake alone that it was written, "It was credited to him";