First, the card is discarded. Then, in turn order, each player is given the option to pay 5 life. Then, if no player paid 5 life, the card is put onto the battlefield from the graveyard.

Artwork
Loading artwork…
Aether Rift
Invasion · #227 · EN
Nonfoil—Foil—
Card rules
At the beginning of your upkeep, discard a card at random. If you discard a creature card this way, return it from your graveyard to the battlefield unless any player pays 5 life.
Rare · Illustrated by Heather Hudson
Format legality
Commander Legal
Duel Legal
Legacy Legal
Oathbreaker Legal
PreDH Legal
Premodern Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Modern Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
Pioneer 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 is actually discarded, so anything which triggers on a discard will trigger. Such abilities will wait to go on the stack until after this ability has completely resolved.