Put target spell or nonland permanent into its owner's library second from the top.
Reverse Type:
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.