Acts 7:42

But God turned and delivered them up to serve the host of heaven, as it is written in the book of the prophets: Your victims and your sacrifices did you offer to me for forty years in the wilderness, house of Israel?

Acts 13:18

And for about forty years, he cherished them in the wilderness.

Treasury of Scripture Knowledge

Summary

Also I brought you up from the land of Egypt, and led you forty years through the wilderness, to possess the land of the Amorite.

Bible References

And led

Acts 7:42
But God turned and delivered them up to serve the host of heaven, as it is written in the book of the prophets: Your victims and your sacrifices did you offer to me for forty years in the wilderness, house of Israel?
Acts 13:18
And for about forty years, he cherished them in the wilderness.