Deuteronomy 4:19
17 any kind of land animal, any bird that flies in the sky, 18 anything that crawls on the ground, or any fish in the deep waters under the earth. 19 When you look up to the sky and see the sun, moon, and stars—the whole heavenly creation—you must not be seduced to worship and serve them, for the Lord your God has assigned them to all the people of the world. 20 You, however, the Lord has selected and brought from Egypt, that iron-smelting furnace, to be his special people as you are today. 21 But the Lord became angry with me because of you and vowed that I would never cross the Jordan nor enter the good land that he is about to give you.
Deuteronomy 32:8
6 Is this how you repay the Lord, you foolish, unwise people? Is he not your father, your Creator? He has made you and established you. 7 Remember the ancient days; bear in mind the years of past generations. Ask your father and he will inform you, your elders, and they will tell you. 8 When the Most High gave the nations their inheritance, when he divided up humankind, he set the boundaries of the peoples, according to the number of the heavenly assembly. 9 For the Lord’s allotment is his people, Jacob is his special possession. 10 The Lord found him in a desolate land, in an empty wasteland where animals howl. He continually guarded him and taught him; he continually protected him like the pupil of his eye.
Notes and References
"... The first verse warns against idolatry: “... lest you look up to the heavens and you behold the sun and the moon and the stars, all the host of heaven, you must not be compelled into bowing down to them and serving them, because Yahweh your God apportioned them to all the peoples under all the heavens.” The second verse likewise condemns the service of “other gods ... gods which they had not known nor had been apportioned to them.” The final clauses of both 4:19 and 29:25 show dependence on Deuteronomy 32:8–9 even as they modify the wording of the passage. It is clear that these passages see a division in religious devotion, Yahweh for the Israelites and the other gods for the other nations. (In the case of 4:19, it is evident that the tradition that joined 4:1–31 to 4:32–40 did not put any stock in these other gods, as is clear from the larger context of Deuteronomy 4:1–40, especially verses 35 and 39: “there is no other apart from Him/there is no other.”) The composer of 4:19 here re-uses the language of Deuteronomy 32:8 ... to describe the divine plan of the world. While later sensibilities may be struck by the apparent resulting picture that God in effect made idols for the other nations for which they are then condemned, the interpretational context for Deuteronomy 4:19 is more complex. The composer of Deuteronomy 4:19 was appropriating the old religious worldview or “world theology” in his monotheistic picture ..."
Smith, Mark S. God in Translation: Deities in Cross-Cultural Discourse in the Biblical World (p. 204) Mohr Siebeck, 2008