Put target spell or nonland permanent into its owner's library second from the top.
Aftermath (Cast this spell only from your graveyard. Then exile it.)
Each player shuffles his or her hand and graveyard into his or her library, then draws seven cards.