To summarize, salting an area was a real thing, but the evidence suggests that it was done to make the land more fertile and not less. The idea was to replace your enemy's city with weeds and greenery, as if it had never existed.
I don't know how this could be weaponized or if anyone ever made a serious attempt at it. But it's experienced as massive regional catastrophe when it does, and the cause is clear even if not understood. There are places in arizona and california where salt crystals visibly form on the surface of what used to be farmland: it's plausible this would have been seen in the irrigation agriculture societies of mesopotamia and the ancient eastern mediterranean. Certainly easy to make the jump to fantasizing/praying about it happening to your enemies, once you've seen or heard of it.
I started to think about it in depth when thinking about weed control in my own backyard - should I salt my own soil?
The I realized how quickly it would wash away in the next rain. And for ancient times, the sheer volume of salt one would need in order to disrupt a significant amount of land.
I dunno maybe it happened, but it seems like a very very dumb way to go about it. Then again, humans repeatedly prove the magnitude of our stupidity.