Out of sight, out of mind

Proverb

Out of sight, out of mind

What the eye doesn’t see, the heart doesn’t grieve over (mainly American)

ojos que no ven, corazón que no siente

better the devil you know

better the devil you know (than the devil you don’t).

más vale lo malo conocido que lo bueno por conocer.
This proverb is related to the Latin proverb, expressed in 1539 in Proverbs or Adages out of Erasmus by R. Taverner, “nota res mala, opima,” which means “an evil thing known is best.” This concept has been expressed in many forms since antiquity.
“Better the Devil You Know” is a song by Australian singer and songwriter Kylie Minogue,

close the stable door after the horse has bolted

close, lock, etc. the stable door after the horse has bolted (British English).

close, etc. the barn door after the horse has escaped (American English).

to try to prevent or avoid loss or damage when it is already too late to do so.

tomar precauciones para evitar algo cuando ya es demasiado tarde.