If Master Thief ceases to be under your control before its ability resolves, you won’t gain control of the targeted artifact at all.

Artwork
Loading artwork…
Master Thief
Zendikar Rising Commander · #30 · EN
Nonfoil—Foil—
Card rules
When this creature enters, gain control of target artifact for as long as you control this creature.
2/2
Possession is ten-tenths of the law.
Uncommon · Illustrated by Christopher Moeller
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny 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
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
If Master Thief leaves the battlefield, you no longer control it, and its control-change effect ends.
If another player gains control of Master Thief, its control-change effect ends. Regaining control of Master Thief won’t cause you to regain control of the artifact.