~~You mixed up ferromagnetism with diamagnetism~~
~~> Ferromagnetism is a property of certain materials (such as iron) that results in a significant, observable magnetic permeability, and in many cases, a significant magnetic coercivity, allowing the material to form a permanent magnet. Ferromagnetic materials are noticeably attracted to a magnet, which is a consequence of their substantial magnetic permeability.~~
~~https://en.wikipedia.org/wiki/Ferromagnetism~~
~~> Diamagnetism is the property of materials that are repelled by a magnetic field; an applied magnetic field creates an induced magnetic field in them in the opposite direction, causing a repulsive force.~~
~~> Diamagnetism is a quantum mechanical effect that occurs in all materials; when it is the only contribution to the magnetism, the material is called diamagnetic.~~
~~https://en.wikipedia.org/wiki/Diamagnetism~~
~~Meaning that in both cases, they would be attractive.~~
Edit: I think I misunderstood what you wrote, sorry about that.
From the source.