Take it to Mammas Minerals and they can test it for you and tell yoi exactly what you have.
There are many naturally occurring magnetic minerals on earth.(Babingtonite (weakly)Chromite (weakly)Columbite (weakly)Ferberite (weakly)Franklinite (weakly)Ilmenite (weakly, always when heated)Iron-nickel (attracted to magnets)Magnetite (strongly) these minerals can be looked up online and you can compare your sample. But if not ask for Amanda she is mama's geologist.
Thanks! Your answer is awaiting moderation.