Acts 7:42

So God turned away from them and gave them over to worship the starry host, as it is written in the Book of the Prophets: 'Did you really offer me victims and sacrifices those forty years in the desert, O house of Israel?

Acts 7:36

It was he who brought them out of Egypt by performing wonders and signs there and at the Red Sea -- as he did also in the desert for forty years.

Romans 1:24-28

So God has given them up to sexual impurity, in the evil trend of their heart's desires, so that they degrade their own bodies with one another,

2 Thessalonians 2:10-12

and with a completely wicked deception for men who are on the way to destruction, because they refused to love the truth so as to be saved.

Hebrews 3:9

Where your forefathers found I stood their test, because they saw my works for forty years,

Hebrews 3:15-17

and yet the warning continues to be spoken: "If you but hear His voice, you must not harden your hearts as they did in provoking me."

Treasury of Scripture Knowledge

Summary

Then God turned, and gave them up to worship the host of heaven; as it is written in the book of the prophets, O ye house of Israel, have ye offered to me slain beasts and sacrifices by the space of forty years in the wilderness?

Of forty

Bible References

And gave

Romans 1:24
So God has given them up to sexual impurity, in the evil trend of their heart's desires, so that they degrade their own bodies with one another,
2 Thessalonians 2:10
and with a completely wicked deception for men who are on the way to destruction, because they refused to love the truth so as to be saved.

Of forty

Hebrews 3:9
Where your forefathers found I stood their test, because they saw my works for forty years,