Widespread Panic’s ability is put onto the stack after the library is shuffled.

Artwork
Loading artwork…
Widespread Panic
Commander 2013 · #131 · EN
Nonfoil—Foil—
Card rules
Whenever a spell or ability causes its controller to shuffle their library, that player puts a card from their hand on top of their library.
"How thin is the veneer of civilization! A modest measure of panic will wash it off completely." —Guard Erdrud of An Karras
Rare · Illustrated by Dave Kendall
Format legality
Commander Legal
Duel Legal
Legacy Legal
Oathbreaker Legal
Tlr 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
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions