Lenz's law
Physics term: the direction of an induced current is such that it opposes the change in magnetic flux that produced it.
Lenz's law is one of the fundamental laws of electromagnetic induction.
When a magnet is brought near a coil, an induced current flows according to Lenz's law.