If you cast an instant or sorcery spell, Sphinx-Bone Wand’s ability triggers and goes on the stack on top of it. The ability will resolve before the spell does.

Artwork
Loading artwork…
Sphinx-Bone Wand
Duel Decks: Izzet vs. Golgari · #29 · EN
Nonfoil—Foil—
Card rules
Whenever you cast an instant or sorcery spell, you may put a charge counter on this artifact. If you do, this artifact deals damage equal to the number of charge counters on it to any target.
Its host's final curse lies captured within.
Rare · Illustrated by Franz Vohwinkel
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
PreDH 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
Pauper Not Legal
Pauper Commander Not Legal
Pioneer 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 Sphinx-Bone Wand leaves the battlefield before its ability resolves, you won’t be able to put a charge counter on it. As a result, it won’t deal damage.
If the targeted permanent or player is an illegal target by the time the ability resolves, the ability doesn’t resolve. You won’t put a charge counter on Sphinx-Bone Wand and it won’t deal damage.