Well there are multiple FF titles that have it. Dragon Quest's holy water is pretty iconic for stopping random encounters, although how effective it is depends on the chapter. Other then that it's just something that I remember seeing in a scattering of other JRPGs, most of which are not significant enough for me to remember the names of. One of them had something to do with alchemy and there was a spirit you could use to turn off random encounters.
Originally Posted by Ball_Breaker 
Could you name some of them please? Just curious…