Acts 7:42

And God turned away, and gave them up to serve the host of the heaven; as has been written in the book of the prophets: Slain victims and sacrifices you have not brought unto me forty years in the wilderness, O house of Israel.

Acts 13:18

and when he supported them about the time of forty years 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
And God turned away, and gave them up to serve the host of the heaven; as has been written in the book of the prophets: Slain victims and sacrifices you have not brought unto me forty years in the wilderness, O house of Israel.
Acts 13:18
and when he supported them about the time of forty years in the wilderness,