Acts 7:42

But God turned away, and gave them up to worship the host of heaven; as it is written in the book of the Prophets, "Did ye offer to me slain beasts and sacrifices for forty years in the wilderness, O house of Israel?

Acts 13:18

and for about forty years he nourished 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 away, and gave them up to worship the host of heaven; as it is written in the book of the Prophets, "Did ye offer to me slain beasts and sacrifices for forty years in the wilderness, O house of Israel?
Acts 13:18
and for about forty years he nourished them in the wilderness.