All living beings roaming the earth and winged birds soaring in the sky are communities like yourselves. We have left nothing out of the Record. Then to their Lord they will be gathered all together.
And there is no creature on earth but that upon Allah is its provision, and He knows its place of dwelling and place of storage. All is in a clear register.
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.
And how many a creature carries not its [own] provision. Allah provides for it and for you. And He is the Hearing, the Knowing.
Allah has created living beings (like animals, birds, and fish) just like He created human beings. He provides for all and is merciful to all. They all belong to communities and have their own systems of living.
All of the plant and animal populations living in a habitat interact and form a community. The habitat must supply the needs of organisms, such as food, water, air, and space to grow. If the population’s needs are not met, it will move to a better habitat or die. No organism on Earth is an isolated individual.
Reference : Do animals live in communities?
All Animals Live in Communities
The Qur’an also does contain a number of references to animals living in communities. For example, Surah An-Nahl (The Bees) states:
“And among His Signs is this, that He created for you mates from among yourselves, that you may dwell in tranquility with them, and He has put love and mercy between your (hearts): verily in that are Signs for those who reflect.” (Qur’an 16:72)
This verse suggests that one of the signs of God’s power and mercy is the way that animals, including humans, are able to live in communities and form close relationships with one another.
Other verses of the Qur’an describe animals living in communities as well. For example, Surah Al-An’am (The Cattle) states:
“And cattle He has created for you (men): from them ye derive warmth, and numerous benefits, and of their (meat) ye eat.” (Qur’an 6:79)
This verse suggests that animals, including cattle, live in communities and serve a number of important purposes for humans, such as providing warmth and food.
Overall, the Qur’an acknowledges that animals live in communities and have a variety of roles and purposes within those communities. However, it is important to note that the Qur’an contains references to scientific concepts and phenomena that were not fully understood or appreciated until much later in history, and that these references demonstrate the divine origin of the Qur’an.