For centuries philosophers thought that only humans were rational while animals only followed instinct. Actually this false belief was so entrenched in Arabs that they included it in their grammar, referring to humans as rational (عاقل) and all other animals, plants and inanimate objects as irrational (غير عاقل). However today scientists have confirmed that animals do not act by instinct alone, as Arabs thought, but rather animals have their own logic and communication systems, that is, they make rational decisions like humans but at a much lower scale… However the Quran did not make the mistakes of the Arabs, instead it says that ants have their own logic and do communicate with their own species:
[Quran 27.18] Until, when they came upon the valley of the ants, an ant said, “O ants, enter your homes so that you do not be crushed by Solomon and his soldiers while they do not feel it.”
Here it is clear that the ants do have their own logic and do communicate between themselves however we do not understand their language. The Quran reemphasizes the ants rationality by changing the grammar to the rational mode. Actually the Quran says that all animals
How could an illiterate man who lived 1400 years ago have known that those ants have their own language?
Not only the Quran says that animals communicate with each other but also that they are nations just like humans are nations:
(Quran 6.38} There is no land animal nor a bird that flies with wings who are not nations like you. We didn’t miss a thing in the Book then to their Lord they will be gathered.
Today we are certain that animals live in communities and have their own languages but 1400 years ago this was crazy.
The Quran also says that all animals glorify Allah but we cannot comprehend their languages:
(Quran 17.44} The seven heavens and the Earth and everyone in them glorify Him [Allah]; and there is nothing that doesn’t glorify HIM thankfully; but you (humans) do not understand their glorification. He is Compassionate, Merciful.
(Quran 16.49-50) And to Allah kneels what’s in the heavens and what’s on Earth, of land animals and angels, and they act with no arrogance; 50 They fear their Lord above them and they do what they are ordered.
Just like animals rational is so weak relative to us that we labeled them as irrational, God created other superior beings whose rational is so much advanced relative to us that they could easily label us as irrational.
(The Christian Bible erroneously claims that there are four legged insects Leviticus 11:20. It also claims that there is an animal that has “flames stream from its mouth; sparks of fire shoot out. Smoke pours from its nostrils as from a boiling pot over burning reeds. Its breath sets coals ablaze, and flames dart from its mouth”. Job 41:19-21)
( Quoted from:http://www.speed-light.info/miracles_of_quran/ants.htm)