Agoraphobia's last ability can be activated only while it's on the battlefield.

Artwork
Loading artwork…
Agoraphobia
Duel Decks: Jace vs. Vraska · #22 · EN
Nonfoil—Foil—
Card rules
Enchant creature
Enchanted creature gets -5/-0.
2
: Return this Aura to its owner's hand.
"Everyone in this city is choosing sides. I choose inside."
Uncommon · Illustrated by Jim Murray
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Pioneer Legal
Tlr 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
PreDH Not Legal
Premodern 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
Players don't have priority to cast spells and activate abilities between combat damage being assigned and being dealt. This means that if you want to return Agoraphobia to its owner's hand before combat damage is dealt, you must do so before combat damage is assigned (and the creature will no longer get -5/-0).
Only Agoraphobia's controller can activate its last ability, no matter who controls the creature Agoraphobia's attached to.