Even a rare precious earth magnet will not attract gold. Rare earth magnets are often used in prospecting to separate non precious metals from would be nuggets. Some people will put a rare earth magnet in with pay dirt, or suspected gold containing dirt, to remove a small amount of non precious metal.