Acts 7:42

But God turned away, and gave them up to worship the host of heaven; as it is written in the book of the Prophets, "Did ye offer to me slain beasts and sacrifices for forty years in the wilderness, O house of Israel?

Acts 7:36

This very man brought them out, working wonders and signs in the land of Egypt, and in the Red Sea, and in the wilderness forty years.

Romans 1:24-28

Wherefore God also gave them over in the lusts of their hearts to impurity, to debase their bodies with one another;

2 Thessalonians 2:10-12

and in all deceit of unrighteousness for those who are perishing; because they received not the love of the truth, that they might be saved.

Hebrews 3:9

where your fathers tempted me by proving me, and saw my works forty years.

Hebrews 3:15-17

When it is said, "Today, if ye hear his voice, harden not your hearts, as in the provocation,"

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
Wherefore God also gave them over in the lusts of their hearts to impurity, to debase their bodies with one another;
2 Thessalonians 2:10
and in all deceit of unrighteousness for those who are perishing; because they received not the love of the truth, that they might be saved.

Of forty

Hebrews 3:9
where your fathers tempted me by proving me, and saw my works forty years.