Apparently from the same root as H1465 (in the sense of massing); a foreign nation ; hence a Gentile ; also (figuratively) a troop of animals, or a flight of locusts: - Gentile, heathen, nation, people.
561 occurrences in 511 verses in the Hebrew Old Testament.
For from the rising of the sun even to the going down of the same my name shall be great among the Gentiles; and in every place incense shall be offered to my name, and a pure offering: for my name shall be great among the heathen, said the LORD of hosts.
בַּגּוֹיִםba·go·yimamong the nationsRd/NcmpaH1471בַּגּוֹיִםba·go·yimamong the nationsRd/NcmpaH1471
But cursed be the deceiver, which has in his flock a male, and vows, and sacrifices to the LORD a corrupt thing: for I am a great King, said the LORD of hosts, and my name is dreadful among the heathen.
בַגּוֹיִֽם׃va·go·yimamong the nationsRd/NcmpaH1471