Sram's ability resolves before the spell that caused it to trigger. It resolves even if that spell is countered or otherwise leaves the stack.

Artwork
Loading artwork…
Sram, Senior Edificer
Secrets of Strixhaven Commander · #176 · EN
Nonfoil—Foil—
Card rules
Whenever you cast an Aura, Equipment, or Vehicle spell, draw a card.
2/2
"As this conflict grows, it gets harder to prevent the city from breaking down. How much longer can we keep this machinery balanced?"
Rare · Illustrated by Chris Rahn
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Pioneer Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions