Lost in the Mist targets both the spell and the permanent. You can only cast it if you can choose legal targets for both parts.

Artwork
Loading artwork…
Lost in the Mist
Innistrad · #63 · EN
Nonfoil—Foil—
Card rules
Counter target spell. Return target permanent to its owner's hand.
The secrets she carried could have saved many lives, but they quietly drowned with her.
Common · Illustrated by David Palumbo
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Penny 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
Pioneer Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
If one of Lost in the Mist’s targets is illegal by the time it resolves, Lost in the Mist will still affect the remaining legal target. If both targets are illegal at this time, Lost in the Mist won’t resolve.