lava

Theoretically, magma can only be studied after it has become lava.

An excerpt from the article 14 facts about lava

However, in situ magma has been encountered in geothermal drilling on three occasions - twice in Iceland and once in Hawaii.