Romans 15:4

For whatever was written in earlier times was written for our instruction, so that through endurance and the encouragement of the Scriptures we might have hope and overflow with confidence in His promises.

Romans 4:23-24

Now not for his sake alone was it written that it was credited to him,

Psalm 119:81-83

Kaph.
My soul languishes and grows weak for Your salvation;
I wait for Your word.

Romans 5:3-5

And not only this, but [with joy] let us exult in our sufferings and rejoice in our hardships, knowing that hardship (distress, pressure, trouble) produces patient endurance;

Romans 8:24-25

For in this hope we were saved [by faith]. But hope [the object of] which is seen is not hope. For who hopes for what he already sees?

Romans 12:12

constantly rejoicing in hope [because of our confidence in Christ], steadfast and patient in distress, devoted to prayer [continually seeking wisdom, guidance, and strength],

1 Corinthians 9:9-10

For it is written in the Law of Moses, “You shall not muzzle an ox while it is treading out the grain [to keep it from eating the grain].” Is it [only] for oxen that God cares?

1 Corinthians 10:11

Now these things happened to them as an example and warning [to us]; they were written for our instruction [to admonish and equip us], upon whom the ends of the ages have come.

2 Timothy 3:16-17

All Scripture is God-breathed [given by divine inspiration] and is profitable for instruction, for conviction [of sin], for correction [of error and restoration to obedience], for training in righteousness [learning to live in conformity to God’s will, both publicly and privately—behaving honorably with personal integrity and moral courage];

Hebrews 6:10-19

For God is not unjust so as to forget your work and the love which you have shown for His name in ministering to [the needs of] the saints (God’s people), as you do.

Hebrews 10:35-36

Do not, therefore, fling away your [fearless] confidence, for it has a glorious and great reward.

James 5:7-11

So wait patiently, brothers and sisters, until the coming of the Lord. The farmer waits [expectantly] for the precious harvest from the land, being patient about it, until it receives the early and late rains.

1 Peter 1:13

So prepare your minds for action, be completely sober [in spirit—steadfast, self-disciplined, spiritually and morally alert], fix your hope completely on the grace [of God] that is coming to you when Jesus Christ is revealed.

2 Peter 1:20-21

But understand this first of all, that no prophecy of Scripture is a matter of or comes from one’s own [personal or special] interpretation,

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.

Bible References

Whatsoever

Romans 4:23
Now not for his sake alone was it written that it was credited to him,
1 Corinthians 9:9
For it is written in the Law of Moses, “You shall not muzzle an ox while it is treading out the grain [to keep it from eating the grain].” Is it [only] for oxen that God cares?
1 Corinthians 10:11
Now these things happened to them as an example and warning [to us]; they were written for our instruction [to admonish and equip us], upon whom the ends of the ages have come.
2 Timothy 3:16
All Scripture is God-breathed [given by divine inspiration] and is profitable for instruction, for conviction [of sin], for correction [of error and restoration to obedience], for training in righteousness [learning to live in conformity to God’s will, both publicly and privately—behaving honorably with personal integrity and moral courage];
2 Peter 1:20
But understand this first of all, that no prophecy of Scripture is a matter of or comes from one’s own [personal or special] interpretation,

That

Romans 5:3
And not only this, but [with joy] let us exult in our sufferings and rejoice in our hardships, knowing that hardship (distress, pressure, trouble) produces patient endurance;
Romans 8:24
For in this hope we were saved [by faith]. But hope [the object of] which is seen is not hope. For who hopes for what he already sees?
Romans 12:12
constantly rejoicing in hope [because of our confidence in Christ], steadfast and patient in distress, devoted to prayer [continually seeking wisdom, guidance, and strength],
Psalm 119:81
Kaph.
My soul languishes and grows weak for Your salvation;
I wait for Your word.
Hebrews 6:10
For God is not unjust so as to forget your work and the love which you have shown for His name in ministering to [the needs of] the saints (God’s people), as you do.
Hebrews 10:35
Do not, therefore, fling away your [fearless] confidence, for it has a glorious and great reward.
James 5:7
So wait patiently, brothers and sisters, until the coming of the Lord. The farmer waits [expectantly] for the precious harvest from the land, being patient about it, until it receives the early and late rains.
1 Peter 1:13
So prepare your minds for action, be completely sober [in spirit—steadfast, self-disciplined, spiritually and morally alert], fix your hope completely on the grace [of God] that is coming to you when Jesus Christ is revealed.

General references

Jeremiah 30:2
“Thus says the Lord God of Israel, ‘Write in a book all the words which I have spoken to you.
Luke 21:19
By your [patient] endurance [empowered by the Holy Spirit] you will gain your souls.
John 20:30
There are also many other signs (attesting miracles) that Jesus performed in the presence of the disciples, which are not written in this book;
Romans 4:23
Now not for his sake alone was it written that it was credited to him,