Djinn of the Fountain's triggered ability will resolve before the instant or sorcery spell that caused it to trigger resolves. It will resolve even if the spell that caused it to trigger is countered or has otherwise left the stack.

Artwork
Loading artwork…
Djinn of the Fountain
Dominaria United · #47 · EN
Nonfoil—Foil—
Card rules
Flying
Whenever you cast an instant or sorcery spell, choose one —
• This creature gets +1/+1 until end of turn.
• Exile this creature. Return it to the battlefield under its owner's control at the beginning of the next end step.
• Scry 1.
4/4
Uncommon · Illustrated by Bastien L. Deharme
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pioneer Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions