If Ghostly Wings leaves the battlefield before its activated ability resolves, the creature that was enchanted immediately before Ghostly Wings left is the one that will be returned to its owner’s hand, if it’s still on the battlefield.

Artwork
Loading artwork…
Ghostly Wings
Shadows over Innistrad · #66 · EN
Nonfoil—Foil—
Card rules
Enchant creature
Enchanted creature gets +1/+1 and has flying.
Discard a card: Return enchanted creature to its owner's hand.
Common · Illustrated by Josu Hernaiz
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Penny Legal
Pioneer Legal
PreDH Legal
Premodern Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Old School Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
You control Ghostly Wings even while it enchants an opponent’s creature. Only you can activate the last ability of Ghostly Wings.
After the last ability of Ghostly Wings resolves, it will be an Aura on the battlefield that isn’t attached to a creature and will immediately be put into its owner’s graveyard.
You can activate the last ability multiple times to discard multiple cards. Only the first ability to resolve will have any effect.