Acts 7:42

So God turned his back on them and left them to worship the starry host, just as the Book of the Prophets says, " 'Was it victims and sacrifices that you offered to me, O house of Israel, Those forty years in the desert?

Acts 13:18

Then after he had taken care of them for 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 his back on them and left them to worship the starry host, just as the Book of the Prophets says, " 'Was it victims and sacrifices that you offered to me, O house of Israel, Those forty years in the desert?
Acts 13:18
Then after he had taken care of them for forty years in the desert,