The Lord said this in way of holy scorn and derision. Compare Genesis 3:22.
Related Commentaries of Genesis 11:6
Genesis 11:6
6 And the LORD said, Behold, the people is one, and they have all one language; and this they begin to do: and now nothing will be restrained from them, which they have imagined to do.