Why the seeming change of subject and reference to heavenly bodies? Consider this: The psalmist could see the stars with his physical eyes, but he had no idea of how many there really are.
(‏ مز ١٤٧ :‏ ٣‏ )‏ فَيَهْوَهُ يَهْتَمُّ بِنَا سَوَاءٌ كُنَّا مَرْضَى أَوْ مُكْتَئِبِينَ .‏