It only returns to owner's hand if it is still on the battlefield at end of combat.

Artwork
Loading artwork…
Wall of Junk
Dominaria Remastered · #240 · EN
Nonfoil—Foil—
Card rules
Defender (This creature can't attack.)
When this creature blocks, return it to its owner's hand at end of combat. (Return it only if it's on the battlefield.)
0/7
Urza saw the wall and realized that even if he tore every Phyrexian to pieces, they would still resist him.
Uncommon · Illustrated by Adam Rex
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