Magnetism is a distinctive property in a few minerals.
Magnetite is the prime example, but a few other minerals may be weakly attracted by a magnet, notably chromite (a black oxide) and pyrrhotite (a bronze sulfide). Use a strong magnet. The magnets I use came from the corners of an old plastic shower curtain. Another way to test magnetism is to see if the specimen attracts a compass needle.