This is the most popular myth of all time. Many home-based experiments agree on this myth. However, there are conditions to look deeper into this matter: how quickly it attracts ants varies from the moisture content of the honey, humidity of the environment, and location.
Honey with high moisture content (not so sticky) has more air and scent molecules that are released through evaporation and thus it is easier to attract ants.
When the environment has high humidity, it is easier for insects to pick up scents. Honey stored in humid places are prone to attracting ants.
It is a common issue for some bee keepers facing ants infestation in their hives. The hives are being checked regularly to avoid these honey thieves stealing from the hive!
Hence, if your honey is crawling with ants, honey, it is safe.