One day Solomon gathered his army, which had different battalions of men, jinns, birds, and animals. He marched them to the country of Askalon.
While they were passing through a valley, an ant saw the approaching army and cried out to warn the other ants: "Run to your homes! Otherwise, unaware, Solomon and his army might crush you!" Solomon, hearing the cry of the ant, smiled. He was glad that the ant knew him to be a prophet who would not intentionally harm Allah's creation. He thanked Allah for saving the ants' lives.