If you choose at least one target for Serene Remembrance, and all of its targets are illegal when Serene Remembrance tries to resolve, it won’t resolve and none of its effects will happen. You won’t shuffle any library and Serene Remembrance will be put into its owner’s graveyard.

Artwork
Loading artwork…
Serene Remembrance
Gatecrash · #132 · EN
Nonfoil—Foil—
Card rules
Shuffle Serene Remembrance and up to three target cards from a single graveyard into their owners' libraries.
While Lazav schemed and Niv-Mizzet researched, Trostani sought the future in the whispers of the past.
Uncommon · Illustrated by David Palumbo
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Pioneer Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander 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
You may choose zero targets when you cast Serene Remembrance. If you do, you’ll shuffle Serene Remembrance into its owner’s library when it resolves.
If you give Serene Remembrance the flashback ability and cast it from your graveyard, it will be exiled instead of being shuffled into your library. Any other targets will still be shuffled into their owners’ library, however.