Acts 7:42

Then God turned away, and gave them up to worship the host of heaven, as it is written in the book of the prophets, "O house of Israel, did ye offer to me your victims and sacrifices, for the space of forty years in the wilderness?

Acts 13:18

And about forty years He bare with their behaviour 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
Then God turned away, and gave them up to worship the host of heaven, as it is written in the book of the prophets, "O house of Israel, did ye offer to me your victims and sacrifices, for the space of forty years in the wilderness?
Acts 13:18
And about forty years He bare with their behaviour in the wilderness.