If the target creature is an illegal target as Oracle's Restoration tries to resolve, it won't resolve and none of its effects will happen. You won't draw a card or gain 1 life.

Artwork
Loading artwork…
Oracle's Restoration
Secrets of Strixhaven · #156 · EN
Nonfoil—Foil—
Card rules
Target creature you control gets +1/+1 until end of turn. You draw a card and gain 1 life.
Though the archaic had ravaged Titan's Grave and stolen Jadzi from safety, her compassion soothed its frenzy.
Common · Illustrated by Elliot Lang
Format legality
Alchemy Legal
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Future Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Pioneer Legal
Standard Legal
Standard Brawl Legal
Timeless Legal
Tlr Legal
Vintage Legal
Old School Not Legal
Penny Not Legal
PreDH Not Legal
Premodern Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions