You have to shuffle a card from your hand into your library even if you don’t draw any cards (due to replacement effects or Maralen of the Mornsong’s ability, for example). If your hand is empty, you don’t shuffle your library.

Artwork
Loading artwork…
See Beyond
Planechase Anthology · #25 · EN
Nonfoil—Foil—
Card rules
Draw two cards, then shuffle a card from your hand into your library.
Ancient lore locked in a mind driven mad is just as safe as when it was locked deep underground.
Common · Illustrated by Andrew Robinson
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Penny Legal
PreDH 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
Pioneer 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
The card you shuffle into your library may be any card from your hand. It doesn’t have to be one of the cards you drew with the spell.