Magnet
Rare earth (lanthanoid) elements have a partially occupied "f" electron shell (which can accommodate up to 14 electrons). The spin of these electrons can be aligned, resulting in very strong magnetic fields, and therefore, these elements are used in compact high-strength magnets where their higher price is not a concern. The most common types of rare-earth magnets are samarium-cobalt and neodymium-iron-boron (NIB) magnets.
Magnetar
Magnetars are characterized by their extremely powerful magnetic fields of 10 to 10 tesla. These magnetic fields are hundreds of millions of times stronger than any man-made magnet, and quadrillions of times more powerful than the field surrounding Earth. Earth has a geomagnetic field of 30–60 microteslas, and a neodymium-based, rare-earth magnet has a field of about 1.25 tesla, with a magnetic energy density of 4.0×10 J/m. A magnetar's 10 tesla field, by contrast, has an energy density of 4.0×10 J/m, with an "E/c" mass density more than 10,000 times that of lead. The magnetic field of a magnetar would be lethal even at a distance of 1000 km due to the strong magnetic field distorting the electron clouds of the subject's constituent atoms, rendering the chemistry of life impossible. At a distance of halfway from Earth to the moon, a magnetar could strip information from the magnetic stripes of all credit cards on Earth. , they are the most powerful magnetic objects detected throughout the universe.