Return X target cards from your graveyard to your hand. Exile Wildest Dreams.
If each target card is an illegal target as Wildest Dreams resolves, Wildest Dreams doesn't resolve and is put into its owner's graveyard. It's not exiled.