It determines the land's controller at the time the ability resolves. If the land leaves the battlefield before the ability resolves, the land's last controller before it left is used.

Artwork
Loading artwork…
Ankh of Mishra
30th Anniversary Edition · #226 · EN
Nonfoil—Foil—
Card rules
Whenever a land enters, this artifact deals 2 damage to that land's controller.
Rare · Illustrated by Amy Weber
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
This triggers on any land entering. This includes playing a land or putting a land onto the battlefield using a spell or ability.