Deuteronomy 4:19

4: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.

Job 31:26-28

31:26 if I looked at the sun when it was shining,

and the moon advancing as a precious thing,

31:27 so that my heart was secretly enticed,

and my hand threw them a kiss from my mouth,

31:28 then this also would be iniquity to be judged,

for I would have been false to God above.