The life that’s lost and the life that’s gained are based on the number of cards that are actually exiled, not on the value of X (in case any of the targeted cards somehow leave the graveyard in response and thus can’t be exiled this way).

Artwork
Loading artwork…
Suffer the Past
Modern Horizons 3 Commander · #205 · EN
Nonfoil—Foil—
Card rules
Exile X target cards from target player's graveyard. For each card exiled this way, that player loses 1 life and you gain 1 life.
Ulamog's tentacles, their touch like burning ice, rummaged through his soul and stung his memories one by one.
Uncommon · Illustrated by Trevor Claxton
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker 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
Pauper Not Legal
Pauper Commander 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
If the targeted player becomes an illegal target by the time Suffer the Past resolves but the targeted cards don’t, you still exile the cards and gain life. The player won’t be lose any life, though.
Suffer the Past’s effect causes a single life-gain event, not a number of separate ones. This matters for cards such as Cradle of Vitality.