If the target creature or planeswalker is an illegal target by the time Noxious Grasp tries to resolve, the spell doesn’t resolve. You won’t gain life. If the target is legal but not destroyed (most likely because it has indestructible), you will gain life.

Artwork
Loading artwork…
Noxious Grasp
Core Set 2020 · #110 · EN
Nonfoil—Foil—
Card rules
Destroy target creature or planeswalker that's green or white. You gain 1 life.
"The bog doesn't give a stinking bubble about your title, wealth, or piety. It's just hungry." —Byaras, backwoods guide
Uncommon · Illustrated by Tomasz Jedruszek
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pioneer Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions