Widespread Panic

Oracle Text

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.

Card Rulings

10/17/2013 Widespread Panic’s ability is put onto the stack after the library is shuffled.