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.
2 Kings 23:4
3 The king stood by the pillar and renewed the covenant before the Lord, agreeing to follow the Lord and to obey his commandments, laws, and rules with all his heart and being, by carrying out the terms of this covenant recorded on this scroll. All the people agreed to keep the covenant. 4 The king ordered Hilkiah the high priest, the high-ranking priests, and the guards to bring out of the Lord’s temple all the items that were used in the worship of Baal, Asherah, and all the stars of the sky. The king burned them outside of Jerusalem in the terraces of Kidron, and carried their ashes to Bethel. 5 He eliminated the pagan priests whom the kings of Judah had appointed to offer sacrifices on the high places in the cities of Judah and in the area right around Jerusalem. (They offered sacrifices to Baal, the sun god, the moon god, the constellations, and all the stars in the sky.)
Notes and References
"... The Hebrew Scriptures commonly depict the celestial bodies as divine or angelic beings, identified as the “hosts of heaven”, “sons of (the) God(s)” or “sons of the Most High”, and the “gods”. (See e.g. Deuteronomy 4:19; 17:3; Judges 5:20; 2 Kings 17:16; 21:3–5; 23:4–5; 2 Chronicles 33:3–5; Nehemiah 9:6; Job 38:7; Psalm 148:3; Isaiah 14:12–13; 24:21–23; 40:26; 45:12; 48:13; Jeremiah 7:18; 8:2; 19:13; 32:29; 33:22; Daniel 8:10; Zephaniah 1:5) Here in LXX Deuteronomy 4:19, the celestial bodies themselves are regarded as the “hosts (or ornaments) of heaven” who have been “allotted to all the nations under heaven.” This notion is part of a wider Deuteronomic scriptural matrix which depicts the celestial bodies as the patron gods or angels of the nations, members of Yahweh’s Divine Council ..."
Burnett, David A. A Neglected Deuteronomic Scriptural Matrix for the Nature of the Resurrection Body in 1 Corinthians 15:39–42 (pp. 187-212) Fortress Academic, 2019