Acts 7:42

And God turned and gave them up, to worship the host of heaven; as it is written in the book of the prophets, Have ye offered victims and sacrifices to me, for forty years in the wilderness, O house of Israel?

Acts 13:18

And he suffered their manners in the wilderness, about the space of forty years.

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 and gave them up, to worship the host of heaven; as it is written in the book of the prophets, Have ye offered victims and sacrifices to me, for forty years in the wilderness, O house of Israel?
Acts 13:18
And he suffered their manners in the wilderness, about the space of forty years.