Joshua 14:10

And now, look, the Lord has let me live, just as He said, these forty-five years since the Lord spoke this word to Moses, when Israel wandered in the wilderness; and now, look at me, I am eighty-five years old today.

Numbers 14:30

Except for Caleb the son of Jephunneh and Joshua the son of Nun, not one of you shall enter the land in which I swore [an oath] to settle you.

Numbers 14:33-34

Your sons shall be wanderers and shepherds in the wilderness for forty years, and they will suffer for your unfaithfulness (spiritual infidelity), until your corpses are consumed in the wilderness.

Joshua 11:18

Joshua waged war with all these kings a long time [at least five years].

Treasury of Scripture Knowledge

Summary

And now, behold, the LORD hath kept me alive, as he said, these forty and five years, even since the LORD spake this word unto Moses, while the children of Israel wandered in the wilderness: and now, lo, I am this day fourscore and five years old.

General references

Bible References

Forty

Joshua 11:18
Joshua waged war with all these kings a long time [at least five years].
Numbers 14:33
Your sons shall be wanderers and shepherds in the wilderness for forty years, and they will suffer for your unfaithfulness (spiritual infidelity), until your corpses are consumed in the wilderness.

General references

Numbers 14:38
But Joshua the son of Nun and Caleb the son of Jephunneh remained alive out of those men who went to spy out the land.
Psalm 91:7

A thousand may fall at your side
And ten thousand at your right hand,
But danger will not come near you.