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 13:18

Then after He had fed them forty years in the desert,

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
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 13:18
Then after He had fed them forty years in the desert,