If the target permanent is an illegal target as Shattered Wings tries to resolve, it won’t resolve and none of its effects will happen. You won’t surveil.

Artwork
Loading artwork…
Shattered Wings
Edge of Eternities · #206 · EN
Nonfoil—Foil—
Card rules
Destroy target artifact, enchantment, or creature with flying. Surveil 1. (Look at the top card of your library. You may put it into your graveyard.)
The Eumidians sought to keep Evendo a gentle world—at any cost.
Common · Illustrated by Sergey Glushakov
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
Penny Legal
Pioneer Legal
Standard Legal
Standard Brawl Legal
Timeless Legal
Tlr Legal
Vintage Legal
Old School Not Legal
PreDH Not Legal
Premodern Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions