How do you interpret this verse in the Quran :
We have indeed decked the lower heaven with beauty (in) the stars,
(for beauty) and for guard against all obstinate rebellious Satans.
(So) they should not strain their ears in the direction of the Exalted Assembly but be cast away from every side.
— Sura 37:6-8
Were the stars created to drive away Satans ?
The stars were created to beautify the sky and are also used to drive away the inquisitive Shaytaan. They were not created solely to drive away the Shaytaan.
and Allah Ta’ala Knows Best
Mufti Ebrahim Desai