All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger.
It appears –Allaah Knows best –that this impression is not a sound reason by itself for killing the ants because they are a nation that praises and glorifies Allaah and there is a religious text about the prohibition of killing it, so it should not be killed unless it harms.
For more benefit, please refer to Fataawa 84945 and 87944.
Allaah Knows best.