Deuteronomy 17:3

so that they have gone and served strange gods and worshipped them, whether it be the sun or moon or anything contained in heaven which I forbade,

Deuteronomy 4:19

Yea, and lest thou lift up thine eyes unto heaven, and when thou seest the sun and the moon and the stars and whatsoever is contained in heaven, shouldest be deceived and shouldest bow thyself unto them and serve the things which the LORD thy God hath distributed unto all nations that are under all quarters of heaven.

Job 31:26-27

Did I ever greatly regard the rising of the sun? Or, had I the going down of the moon in great reputation?

Jeremiah 7:22-23

But when I brought your fathers out of Egypt, I spake no word unto them of burnt offerings and sacrifices:

Jeremiah 7:31

They have also builded an altar at Tophet, which is in the valley of the children of Hinnom: that they might burn their sons and daughters - which I never commanded them, neither came it ever in my thought.

Jeremiah 19:5

for they have set up an altar unto Baal, to burn their children for a burnt offering unto Baal, which I neither commanded, nor charged them, neither thought once thereupon.

Jeremiah 32:35

They have builded high places for Baal in the valley of the children of Hinnom, to cause their sons and daughters to pass through fire in honor of Moloch: which I never commanded them, neither came it ever in my thought, to make Judah sin with such abomination.

2 Kings 21:3

And he went and built the hill altars again, which Hezekiah his father had destroyed. And he reared up altars to Baal and made groves, as did Ahab king of Israel. And he bowed himself unto all the host of heaven and served them.

Jeremiah 8:2

and laid against the Sun, the Moon and all the heavenly host: whom they loved, whom they served, whom they ran after, whom they sought and worshipped. They shall neither be gathered together nor buried, but shall lie upon the earth, to their shame and despising.

Ezekiel 8:16

And so he brought me into the inward court of the LORD's house. And behold, at the port of the LORD's house, betwixt the fore entry and the altar, there were five and twenty men that turned their backs on the temple of the LORD, and their faces toward the east, and these worshiped the sun.

Treasury of Scripture Knowledge

Summary

And hath gone and served other gods, and worshipped them, either the sun, or moon, or any of the host of heaven, which I have not commanded;

Bible References

The sun

Deuteronomy 4:19
Yea, and lest thou lift up thine eyes unto heaven, and when thou seest the sun and the moon and the stars and whatsoever is contained in heaven, shouldest be deceived and shouldest bow thyself unto them and serve the things which the LORD thy God hath distributed unto all nations that are under all quarters of heaven.
2 Kings 21:3
And he went and built the hill altars again, which Hezekiah his father had destroyed. And he reared up altars to Baal and made groves, as did Ahab king of Israel. And he bowed himself unto all the host of heaven and served them.
Job 31:26
Did I ever greatly regard the rising of the sun? Or, had I the going down of the moon in great reputation?
Jeremiah 8:2
and laid against the Sun, the Moon and all the heavenly host: whom they loved, whom they served, whom they ran after, whom they sought and worshipped. They shall neither be gathered together nor buried, but shall lie upon the earth, to their shame and despising.
Ezekiel 8:16
And so he brought me into the inward court of the LORD's house. And behold, at the port of the LORD's house, betwixt the fore entry and the altar, there were five and twenty men that turned their backs on the temple of the LORD, and their faces toward the east, and these worshiped the sun.