pf2e.fyi
From Pathfinder Impossible Magic, which isn't enabled.

Nullify

SPELL 10
Traditions arcane, divine, occult, primal
Cast
Range 120 feet
Targets the triggering spell

Trigger A foe within range casts a 9th-rank or lower spell.

You instantly destroy the incoming spell, though at the cost of sending magical feedback through your body. You automatically counteract the spell, but the feedback brings you unavoidable harm. You lose 1d8 Hit Points per rank of the triggering spell.

Pathfinder Impossible MagicORC