If you try to move Masterful Ninja from the battlefield to your hand or vice versa, and it's in both zones, it will just stay in both zones. For example, if Masterful Ninja is in both zones, casting Unsummon targeting it won't do anything.

Artwork
Loading artwork…
Masterful Ninja
The List (Unfinity Foil Edition) · #22 · EN
Nonfoil—Foil—
Card rules
Haste
Reveal this card from your hand: Masterful Ninja is on the battlefield and in your hand until end of turn.
1
: This creature gets +1/+1 until end of turn.
1/1
Rare · Illustrated by Matt Gaser
Format legality
Alchemy Not Legal
Brawl Not Legal
Commander Not Legal
Competitive Brawl Not Legal
Duel Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Legacy Not Legal
Modern Not Legal
Oathbreaker Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
Pioneer Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Tlr Not Legal
Vintage Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Masterful Ninja's first activated ability doesn't cause any enters-the-battlefield abilities to trigger. When the turn ends and Masterful Ninja stops being both on the battlefield and in your hand, this won't cause any dies or leaves-the-battlefield abilities to trigger. If Masterful Ninja enters or leaves the battlefield some other way, those abilities work as normal.
If Masterful Ninja is destroyed or discarded, it goes to your graveyard. It will no longer be on the battlefield or in your hand.
Look closer.
No, that's a table.
It's right there.