instant
put target spell or nonland permanent into its owner’s library second from the top.
//
sorcery
aftermath (cast this spell only from your graveyard. then exile it.)
each player shuffles their hand and graveyard into their library, then draws seven cards.