Yes. In Surah an-Naml an ant warns the other ants to enter their homes so that Sulayman (AS) and his army do not crush them unknowingly, and Sulayman, who had been given special knowledge, understood her, smiled and thanked Allah. The Sunnah adds that ant colonies glorify Allah.
As Sulayman (AS) marched with his army of jinn, men and birds, "they came upon the valley of the ants". An ant
said, "O ants, enter your dwellings that you not be crushed by Solomon and his soldiers while they perceive not"
1. Notice her fairness: she excused the army, since they would not even know the ants were there. The tafsir
adds that if Sulayman's army knew of them, they would not trample them 4.
Sulayman understood her because Allah had given him an extraordinary gift. He said, "we have been taught the
language of birds, and we have been given from all things" 3. His reaction is the real lesson: he "smiled,
amused at her speech" and at once turned to Allah with a dua for gratitude and good deeds 2. Power did not make
him forget a tiny creature, or his Lord.
The Prophet ﷺ told of an earlier prophet who, after being bitten by one ant, burned the whole colony. Allah
rebuked him: because of one bite he had burned a community that glorifies Allah 5. The Prophet ﷺ also
prohibited killing ants 6, and the Quran says every creature and bird forms "communities like you" 7.
A modest note on science: ants live in highly organised colonies and communicate mainly through chemical signals
(pheromones), including alarm signals that rouse nestmates to defend the nest or to flee. Some modern writers
present this verse as a scientific miracle, but that goes beyond the text. The Quran tells the story as a special
gift to Sulayman: the miracle is that he understood her speech 23, not a lesson in ant biology. It is still
a beautiful reminder that even the smallest creatures have real communities.
A dua worth memorising is Sulayman's own: "My Lord, enable me to be grateful for Your favor..." 2.
The evidence
1
Quran An-Naml · 27:18
An ant warned the ants to enter their homes so Sulayman's army would not crush them unknowingly.
Until, when they came upon the valley of the ants, an ant said, "O ants, enter your dwellings that you not be crushed by Solomon and his soldiers while they perceive not
2
Quran An-Naml · 27:19
Sulayman smiled at her words and prayed for gratitude and righteous deeds.
So [Solomon] smiled, amused at her speech, and said, "My Lord, enable me to be grateful for Your favor which You have bestowed upon me and upon my parents and to do righteousness of which You approve. And admit me by Your mercy into [the ranks of] Your righteous servants
3
Quran An-Naml · 27:16
Sulayman was taught the language of birds and given from all things.
And Solomon inherited David. He said, "O people, we have been taught the language of birds, and we have been given from all things. Indeed, this is evident bounty
4
TafsirAl-Mukhtasar fi Tafsir al-Quran · 27:18
They were being led until when they came to the valley of ants (a place in the Levant), one of the ants said: “O ants, enter your homes so that Solomon and his armies do not destroy you whilst they do not know of you, because if they know of you they will not trample you”.
5
HadithSahih Muslim 2241
SahihMuslim
Allah rebuked a prophet for burning an ant colony, a community that glorifies Him.
Abu Huraira reported Allah's Messenger (ﷺ) as saying:An ant had bitten a Prophet (one amongst the earlier Prophets) and he ordered that the colony of the ants should be burnt. And Allah revealed to him:" Because of an ant's bite you have burnt a community from amongst the communities which sings My glory
And there is no creature on [or within] the earth or bird that flies with its wings except [that they are] communities like you. We have not neglected in the Register a thing. Then unto their Lord they will be gathered
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-24