All male ants have wings. All worker ants are females. All ants that don't have wings are definitely females.
This was only known recently. But 1400 years ago the Quran addressed ants who cannot fly in the female mode:
١٨ حَتَّىٰ إِذَا أَتَوْا عَلَىٰ وَادِ النَّمْلِ قَالَتْ نَمْلَةٌ يَا أَيُّهَا النَّمْلُ ادْخُلُوا مَسَاكِنَكُمْ لَا يَحْطِمَنَّكُمْ سُلَيْمَانُ وَجُنُودُهُ وَهُمْ لَا يَشْعُرُونَ
For the word "said": Kala (قال) is for males. Kalat ( قَالَتْ) is for females. The Quran used Kalat قَالَتْ (female).
If this ant had wings it would have flown off however it didn't have this option; instead its only option was to hide underground. Since it didn't have wings then this was definitely a female ant. Here the Quran correctly addressed this ant in the female mode.
How could an illiterate man who lived 1400 years ago have known that wingless ants are all females?
The Quran (Koran, the book of Islam) contains scientific knowledge that could not have been known 1400 years ago. It ranges from basic arithmetics to the most advanced topics in astrophysics. You are invited to go through those miracles and judge for yourself.