Romans 15:4

For whatever before was written before are for our instruction was before written that by patience and consolation able of the writings we might have hope.

Romans 4:23-24

And it was not written for him alone, that it was reckoned to him;

Psalm 119:81-83

My soul failed for thy, salvation: I hoped for thy word.

Romans 5:3-5

And not only, but also we boast in affliction: knowing that affliction works perseverance;

Romans 8:24-25

For by hope were we saved: but hope being seen is not hope: for what any one sees, why does he also hope?

Romans 12:12

Rejoicing in hope; holding out under pressure; persevering in prayer;

1 Corinthians 9:9-10

For in the law of Moses has been written, Thou shalt not muzzle the mouth of the ox grinding. Is there not care to God for oxen?

1 Corinthians 10:11

And all those happened types to them; and it was written for our reminding, to whom the ends of the times have arrived.

2 Timothy 3:16-17

All writing divinely inspired, and profitable for doctrine, for refutation, for correction, for instruction in justice:

Hebrews 6:10-19

For God is not unjust to forget your work and fatigue of love, which ye showed to his name, having served to the holy ones, and serving.

Hebrews 10:35-36

Throw not away therefore your freedom of speech, which has great payment of reward.

James 5:7-11

Therefore be longsuffering, brethren, even to the arrival of the Lord. Behold, the farmer awaits the precious fruit of the earth, being longsuffering for it, even till he should receive the early and late rain.

1 Peter 1:13

Wherefore having girded up the loins of your mind, living abstemiously, hope perfectly upon the grace brought to you in the revelation of Jesus Christ;

2 Peter 1:20-21

Knowing this first, that every prophecy of the writing is not of private solution.

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
And it was not written for him alone, that it was reckoned to him;
1 Corinthians 9:9
For in the law of Moses has been written, Thou shalt not muzzle the mouth of the ox grinding. Is there not care to God for oxen?
1 Corinthians 10:11
And all those happened types to them; and it was written for our reminding, to whom the ends of the times have arrived.
2 Timothy 3:16
All writing divinely inspired, and profitable for doctrine, for refutation, for correction, for instruction in justice:
2 Peter 1:20
Knowing this first, that every prophecy of the writing is not of private solution.

That

Romans 5:3
And not only, but also we boast in affliction: knowing that affliction works perseverance;
Romans 8:24
For by hope were we saved: but hope being seen is not hope: for what any one sees, why does he also hope?
Romans 12:12
Rejoicing in hope; holding out under pressure; persevering in prayer;
Psalm 119:81
My soul failed for thy, salvation: I hoped for thy word.
Hebrews 6:10
For God is not unjust to forget your work and fatigue of love, which ye showed to his name, having served to the holy ones, and serving.
Hebrews 10:35
Throw not away therefore your freedom of speech, which has great payment of reward.
James 5:7
Therefore be longsuffering, brethren, even to the arrival of the Lord. Behold, the farmer awaits the precious fruit of the earth, being longsuffering for it, even till he should receive the early and late rain.
1 Peter 1:13
Wherefore having girded up the loins of your mind, living abstemiously, hope perfectly upon the grace brought to you in the revelation of Jesus Christ;

General references

Jeremiah 30:2
Thus said Jehovah God of Israel, saying, Write for thee all the words which I spake to thee upon the writing.
Luke 21:19
In your patience possess ye your souls.
John 20:30
Then truly many other signs did Jesus also before his disciples, which are not written in this small book:
Romans 4:23
And it was not written for him alone, that it was reckoned to him;