Because the “search” requires you to find a card with certain characteristics, you don’t have to find the card if you don’t want to.

Artwork
Loading artwork…
Zirilan of the Claw
Mirage · #204 · EN
Nonfoil—Foil—
Card rules
1
,
: Search your library for a Dragon permanent card, put that card onto the battlefield, then shuffle. That Dragon gains haste until end of turn. Exile it at the beginning of the next end step.
3/4
Rare · Illustrated by Andrew Robinson
Format legality
Commander Legal
Duel Legal
Legacy Legal
Oathbreaker Legal
PreDH Legal
Premodern Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Modern Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
Pioneer 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 the Dragon is put onto the battlefield and then phases out, the “exile it” ability will still apply. It will trigger at the beginning of the next End step and exile the Dragon if it has phased back in. If the Dragon is still phased out, then it cannot be exiled so ability won’t do anything.