Why did Allah create the stars?

The short answer

The Quran gives three purposes for the stars: they beautify the sky, they guard it against devils who try to eavesdrop, and they guide people through the darkness of land and sea. Above all they are signs that point to their Creator, and they themselves submit to Him.

Explanation

The Quran speaks about the stars with a sense of wonder, and it tells us plainly what they are for.

Beauty. "We have certainly beautified the nearest heaven with stars" 1. Allah placed great stars in the sky and "beautified it for the observers" 2. Enjoying the beauty of a clear night sky is a way of noticing Allah's generosity.

Protection. The same verse says Allah made from them "what is thrown at the devils" 1. The adornment of stars is also "protection against every rebellious devil", so that they cannot listen in on the exalted assembly of angels 3. (See the entry on shooting stars.)

Guidance. "It is He who placed for you the stars that you may be guided by them through the darknesses of the land and sea" 4.

The early scholar Qatadah, quoted by Ibn Kathir, summarised these three purposes: Allah created the stars as adornment for the sky, as missiles against the devils and as signs to guide by. He added that whoever reads other meanings into them has spoken from his own opinion and burdened himself with what he has no knowledge of 5. Al-Bukhari also records this saying of Qatadah, without a full chain, in the Book of the Beginning of Creation of his Sahih.

Signs of submission. The stars are "subjected by His command" 6. They, along with the sun, the moon, the mountains and the trees, prostrate to Allah 7. Allah even swears by "the setting of the stars" and says it is a great oath, "if you could know" 8.

So when you look up at the stars, you are looking at creatures that obey Allah perfectly. That is a reminder to join them in worship.

The evidence

  1. 1
    Quran Al-Mulk · 67:5

    The nearest heaven is beautified with stars, and from them are missiles against devils.

    وَلَقَدۡ زَيَّنَّا ٱلسَّمَآءَ ٱلدُّنۡيَا بِمَصَٰبِيحَ وَجَعَلۡنَٰهَا رُجُومࣰ ا لِّلشَّيَٰطِينِۖ وَأَعۡتَدۡنَا لَهُمۡ عَذَابَ ٱلسَّعِيرِ ۝٥

    And We have certainly beautified the nearest heaven with stars and have made [from] them what is thrown at the devils and have prepared for them the punishment of the Blaze

  2. 2
    Quran Al-Hijr · 15:16

    Allah placed great stars in the heaven and beautified it for observers.

    وَلَقَدۡ جَعَلۡنَا فِي ٱلسَّمَآءِ بُرُوجࣰ ا وَزَيَّنَّٰهَا لِلنَّٰظِرِينَ ۝١٦

    And We have placed within the heaven great stars and have beautified it for the observers

  3. 3
    Quran As-Saaffaat · 37:6–8

    The stars adorn the nearest heaven and protect it from devils trying to listen to the exalted assembly.

    إِنَّا زَيَّنَّا ٱلسَّمَآءَ ٱلدُّنۡيَا بِزِينَةٍ ٱلۡكَوَاكِبِ ۝٦ وَحِفۡظࣰ ا مِّن كُلِّ شَيۡطَٰنࣲ مَّارِدࣲ‏ ۝٧ لَّا يَسَّمَّعُونَ إِلَى ٱلۡمَلَإِ ٱلۡأَعۡلَىٰ وَيُقۡذَفُونَ مِن كُلِّ جَانِبࣲ‏ ۝٨

    6 Indeed, We have adorned the nearest heaven with an adornment of stars 7 And as protection against every rebellious devil 8 [So] they may not listen to the exalted assembly [of angels] and are pelted from every side

  4. 4
    Quran Al-An'aam · 6:97

    The stars guide people through the darkness of land and sea.

    وَهُوَ ٱلَّذِي جَعَلَ لَكُمُ ٱلنُّجُومَ لِتَهۡتَدُواْ بِهَا فِي ظُلُمَٰتِ ٱلۡبَرِّ وَٱلۡبَحۡرِۗ قَدۡ فَصَّلۡنَا ٱلۡأٓيَٰتِ لِقَوۡمࣲ يَعۡلَمُونَ ۝٩٧

    And it is He who placed for you the stars that you may be guided by them through the darknesses of the land and sea. We have detailed the signs for a people who know

  5. 5
    Tafsir Tafsir Ibn Kathir · 67:5

    The Virtues of Surat Al-Mulk Imam Ahmad recorded from Abu Hurayrah that Allah's Messenger ﷺ said, إِنَّ سُورَةً فِي الْقُرْآنِ ثَلَاثِينَ آيَةً شَفَعَتْ لِصَاحِبِهَا حَتّٰى غُفِرَ لَهُ: تَبَارَكَ الَّذِي بِيَدِهِ الْمُلْكُ (Verily, there is a chapter in the Qur'an which contains thirty Ayat that will intercede on behalf of its reciter until he is forgiven. (It is): (Blessed be He in Whose Hand is the dominion.)) This Hadith was collected by At-Tirmidhi and the four Sunan Compilers. At-Tirmidhi said concerning it, "This is a Hasan Hadith." At-Tabarani and Al-Hafiz Ad-Diya' Al-Maqdisi both recorded from Anas that the Messenger of Allah ﷺ said, سُورَةٌ فِي الْقُرْآنِ خَاصَمَتْ عَنْ صَاحِبِهَا حَتّٰى أَدْخَلَتْهُ الْجَنَّةَ: تَبَارَكَ الَّذِي بِيَدِهِ الْمُلْكُ (There is a chapter of the Qur'an that will argue on behalf of its reciter until it causes him to enter into Paradise. (It is): (Blessed be He in Whose Hand is the dominion.)) بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ In the Name of Allah, the Most Gracious, the Most Merciful. تَبَارَكَ الَّذِي بِيَدِهِ الْمُلْكُ وَهُوَ عَلَىٰ كُلِّ شَيْءٍ قَدِيرٌ - الَّذِي خَلَقَ الْمَوْتَ وَالْحَيَاةَ لِيَبْلُوَكُمْ أَيُّكُمْ أَحْسَنُ عَمَلًا ۚ وَهُوَ الْعَزِيزُ الْغَفُورُ - الَّذِي خَلَقَ سَبْعَ سَمَاوَاتٍ طِبَاقًا ۖ مَا تَرَىٰ فِي خَلْقِ الرَّحْمَٰنِ مِنْ تَفَاوُتٍ ۖ فَارْجِعِ الْبَصَرَ هَلْ تَرَىٰ مِنْ فُطُورٍ - ثُمَّ ارْجِعِ الْبَصَرَ كَرَّتَيْنِ يَنْقَلِبْ إِلَيْكَ الْبَصَرُ خَاسِئًا وَهُوَ حَسِيرٌ - وَلَقَدْ زَيَّنَّا السَّمَاءَ الدُّنْيَا بِمَصَابِيحَ وَجَعَلْنَاهَا رُجُومًا لِلشَّيَاطِينِ ۖ وَأَعْتَدْنَا لَهُمْ عَذَابَ السَّعِيرِ (1. Blessed be He in Whose Hand is the dominion; and He is Able to do all things.)(2. Who has created death and life that He may test you which of you is best in deed. And He is the Almighty, the Oft-Forgiving;)(3. Who has created the seven heavens one above the other; you can see no fault in the creation of the Most Gracious. Then look again. Can you see any rifts?)(4. Then look again and yet again, your sight will return to you Khasi', and worn out.)(5. And indeed We have adorned the nearest heaven with lamps, and We have made such lamps (as) missiles to drive away the Shayatin, and have prepared for them the torment of the blazing Fire.) Glorification of Allah and mentioning the Creation of Death, Life, the Heavens and the Stars Allah the Exalted glorifies His Noble Self and informs that the dominion is in His Hand. This means that He deals with all of His creatures however He wishes and there is none who can reverse His decree. He is not questioned concerning what He does because of His force, His wisdom and His justice. For this reason Allah says, وَهُوَ عَلَىٰ كُلِّ شَيْءٍ قَدِيرٌ (and He is Able to do all things.) Then Allah says, الَّذِي خَلَقَ الْمَوْتَ وَالْحَيَاةَ (Who has created death and life) Those who say that death is an existing creation use this Ayah as a proof because it is something that has been created. This Ayah means that He brought creation into existence from nothing in order to test the creatures. He examines them to see which of them will be best in deeds. This is similar to Allah's statement, كَيْفَ تَكْفُرُونَ بِاللَّهِ وَكُنْتُمْ أَمْوَاتًا فَأَحْيَاكُمْ ۖ (How can you disbelieve in Allah? Seeing that you were dead and He gave you life.)(2:28) In this Ayah Allah named the first stage, which is non-existence, "death." Then he named the origin or beginning of existence, "life." This is why Allah says, ثُمَّ يُمِيتُكُمْ ثُمَّ يُحْيِيكُمْ (Then He will give death, then again will bring you to life (on the Day of Resurrection))(2:28). Concerning Allah's statement, لِيَبْلُوَكُمْ أَيُّكُمْ أَحْسَنُ عَمَلًا (He may test you which of you is best in deed.) it means best in deeds. This is as Muhammad bin 'Ajlan said. It should be noted that Allah did not say "which of you does the most deeds." Allah then says, وَهُوَ الْعَزِيزُ الْغَفُورُ (And He is the Almighty, the Oft-Forgiving.) This means that He is the Almighty, the Most Great, the Most Powerful and the Most Honorable. However, along with this He is Most Forgiving to whoever turns to Him in repentance and seeks His pardon after having disobeyed Him and opposed His commandment. Even though Allah is Almighty, He also forgives, shows mercy, pardons and excuses. Then Allah says, الَّذِي خَلَقَ سَبْعَ سَمَاوَاتٍ طِبَاقًا ۖ (Who has created the seven heavens one above the other;) meaning stacked one on top of the other. Are they connected to each other, meaning that they are in elevated ascension, some of them being stacked above others, or separated with space between them? There are two views concerning this, and the most correct opinion seems to be the latter as is proven in the Hadith of Isra' (the Prophet's Night Journey) and other narrations. Concerning Allah's statement, مَا تَرَىٰ فِي خَلْقِ الرَّحْمَٰنِ مِنْ تَفَاوُتٍ ۖ (you can see no fault in the creation of the Most Gracious.) means, it (the creation) is done in a flawless manner, and these are connected with each other so as to forms a straight level, having no disunion, conflict, inconsistency, deficiency, flaw or defect. This is the reason that Allah says, فَارْجِعِ الْبَصَرَ هَلْ تَرَىٰ مِنْ فُطُورٍ (Then look again. Can you see any rifts) meaning, look at the sky and pay close attention to it. Do you see any flaw, deficiency, defect or rifts in it? Ibn 'Abbas, Mujahid, Ad-Dahhak, Ath-Thawri and others said concerning Allah's statement, فَارْجِعِ الْبَصَرَ هَلْ تَرَىٰ مِنْ فُطُورٍ (Then look again. Can you see any rifts) that it means cracks. As-Suddi said that, هَلْ تَرَىٰ مِنْ فُطُورٍ (Can you see any rifts?) means any tears. Qatadah said, هَلْ تَرَىٰ مِنْ فُطُورٍ (Can you see any rifts?) means, 'do you see any defects O Son of Adam (mankind)?' In reference to Allah's statement, ثُمَّ ارْجِعِ الْبَصَرَ كَرَّتَيْنِ (Then look again and yet again,) Qatadah said, "It means (look) twice." يَنْقَلِبْ إِلَيْكَ الْبَصَرُ خَاسِئًا (your sight will return to you Khasi',) Ibn 'Abbas said that Khasi' means humiliated. Mujahid and Qatadah both said that it means despised. وَهُوَ حَسِيرٌ (and worn out.) Ibn 'Abbas said that this means it will be exhausted. Mujahid, Qatadah and As-Suddi all said that it means broken down fatigue that comes from weakness. Thus, the Ayah means that if you continuously looked, no matter how much you look, your sight will return to you. خَاسِئًا (Khasi') due to the inability to see any flaw or defect (in Allah's creation). وَهُوَ حَسِيرٌ (and worn out.) meaning, exhausted and broken down feebleness due to the great amount of repeated looking without being able to detect any deficiency. Then, after Allah negated any deficiency in the creation of the heavens, He explains their perfection and beauty. He says, وَلَقَدْ زَيَّنَّا السَّمَاءَ الدُّنْيَا بِمَصَابِيحَ (And indeed We have adorned the nearest heaven with lamps,) This refers to the stars which have been placed in the heavens, some moving and some stationary. In Allah's statement, وَجَعَلْنَاهَا رُجُومًا لِلشَّيَاطِينِ (and We have made them (as) missiles to drive away the Shayatin,) The pronoun 'them' in His statement, "and We have made them" is the same type of statement as the stars being referred to as lamps. This does not mean that they are actually missiles, because the stars in the sky are not thrown. Rather, it is the meteors beneath them that are thrown and they are taken from the stars. And Allah knows best. Concerning Allah's statement, وَأَعْتَدْنَا لَهُمْ عَذَابَ السَّعِيرِ (and We have prepared for them the torment of the blazing Fire.) means, 'We have made this disgrace for the devils in this life and We have prepared for them the torment of the blazing Fire in the Hereafter.' This is as Allah said in the beginning of Surat As-Saffat, إِنَّا زَيَّنَّا السَّمَاءَ الدُّنْيَا بِزِينَةٍ الْكَوَاكِبِ - وَحِفْظًا مِنْ كُلِّ شَيْطَانٍ مَارِدٍ - لَا يَسَّمَّعُونَ إِلَى الْمَلَإِ الْأَعْلَىٰ وَيُقْذَفُونَ مِنْ كُلِّ جَانِبٍ - دُحُورًا ۖ وَلَهُمْ عَذَابٌ وَاصِبٌ - إِلَّا مَنْ خَطِفَ الْخَطْفَةَ فَأَتْبَعَهُ شِهَابٌ ثَاقِبٌ (Verily, We have adorned the near heaven with the stars (for beauty). And to guard against every rebellious devil. They cannot listen to the higher group (angels) for they are pelted from every side. Outcast, and theirs is a constant (or painful) torment. Except such as snatch away something by stealing, and they are pursued by a flaming fire of piercing brightness.)(37:6-10) Qatadah said, "These stars were only created for three purposes: Allah created them as adornment for the heaven (sky), as missiles for the devils and as signs for navigation. Therefore, whoever seeks to interpret any other meanings for them other than these, then verily he has spoken with his own opinion, he has lost his portion and burdened himself with that which he has no knowledge of." Ibn Jarir and Ibn Abi Hatim both recorded this statement.

  6. 6
    Quran Al-A'raaf · 7:54

    The sun, the moon and the stars are subjected by Allah's command.

    إِنَّ رَبَّكُمُ ٱللَّهُ ٱلَّذِي خَلَقَ ٱلسَّمَٰوَٰتِ وَٱلۡأَرۡضَ فِي سِتَّةِ أَيَّامࣲ ثُمَّ ٱسۡتَوَىٰ عَلَى ٱلۡعَرۡشِۖ يُغۡشِي ٱلَّيۡلَ ٱلنَّهَارَ يَطۡلُبُهُۥ حَثِيثࣰ ا وَٱلشَّمۡسَ وَٱلۡقَمَرَ وَٱلنُّجُومَ مُسَخَّرَٰتِۭ بِأَمۡرِهِۦٓۗ أَلَا لَهُ ٱلۡخَلۡقُ وَٱلۡأَمۡرُۗ تَبَارَكَ ٱللَّهُ رَبُّ ٱلۡعَٰلَمِينَ ۝٥٤

    Indeed, your Lord is Allah, who created the heavens and earth in six days and then established Himself above the Throne. He covers the night with the day, [another night] chasing it rapidly; and [He created] the sun, the moon, and the stars, subjected by His command. Unquestionably, His is the creation and the command; blessed is Allah, Lord of the worlds

  7. 7
    Quran Al-Hajj · 22:18

    The sun, moon, stars, mountains and trees prostrate to Allah.

    أَلَمۡ تَرَ أَنَّ ٱللَّهَ يَسۡجُدُۤ لَهُۥۤ مَن فِي ٱلسَّمَٰوَٰتِ وَمَن فِي ٱلۡأَرۡضِ وَٱلشَّمۡسُ وَٱلۡقَمَرُ وَٱلنُّجُومُ وَٱلۡجِبَالُ وَٱلشَّجَرُ وَٱلدَّوَآبُّ وَكَثِيرࣱ مِّنَ ٱلنَّاسِۖ وَكَثِيرٌ حَقَّ عَلَيۡهِ ٱلۡعَذَابُۗ وَمَن يُهِنِ ٱللَّهُ فَمَا لَهُۥ مِن مُّكۡرِمٍۚ إِنَّ ٱللَّهَ يَفۡعَلُ مَا يَشَآءُ۩ ۝١٨

    Do you not see that to Allah prostrates whoever is in the heavens and whoever is on the earth and the sun, the moon, the stars, the mountains, the trees, the moving creatures and many of the people? But upon many the punishment has been justified. And he whom Allah humiliates - for him there is no bestower of honor. Indeed, Allah does what He wills

  8. 8
    Quran Al-Waaqia · 56:75–76

    Allah swears by the setting of the stars, a great oath if you could know.

    ۞فَلَآ أُقۡسِمُ بِمَوَٰقِعِ ٱلنُّجُومِ ۝٧٥ وَإِنَّهُۥ لَقَسَمࣱ لَّوۡ تَعۡلَمُونَ عَظِيمٌ ۝٧٦

    75 Then I swear by the setting of the stars 76 And indeed, it is an oath - if you could know - [most] great

This answer was compiled with the help of AI, using only the verified texts shown here. Every reference links to its source. If you find a mistake, please report it. Updated 2026-09-25

Report an issue

Tell us what is wrong. Every report is read.

What is the problem?