In a multiplayer game, if the owner of In the Trenches leaves the game, the exiled card will return to the battlefield. Because the one-shot effect that returns the card isn't an ability that goes on the stack, it won't cease to exist along with the leaving player's spells and abilities on the stack.

Artwork
Loading artwork…
In the Trenches
The Brothers' War · #8 · EN
Nonfoil—Foil—
Card rules
Creatures you control get +1/+1.
5
: Exile target nonland permanent you don't control until this enchantment leaves the battlefield. Activate only as a sorcery and only once.
The battlefield became so pockmarked with craters and trenches that casualties were regularly attributed to "fell in a hole."
Mythic · Illustrated by Daarken
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Pioneer Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future 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
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
The activated ability can only be activated once per game. If the ability is countered or otherwise fails to resolve after being activated, it can't be activated again.
If a token is exiled, it ceases to exist. It won't be returned to the battlefield.
If In the Trenches leaves the battlefield and later returns to the battlefield, it is a new object on the battlefield with no memory of the last time it was there. Its ability may be activated, even if it was activated a previous time it was on the battlefield.
If In the Trenches leaves the battlefield before its activated ability resolves, the target permanent won't be exiled.
The activated ability is a single ability that creates two one-shot effects: one that exiles the permanent when the ability resolves, and another that returns the exiled card to the battlefield immediately after In the Trenches leaves the battlefield.
Auras attached to the exiled permanent will be put into their owners' graveyards. Equipment attached to an exiled creature will become unattached and remain on the battlefield. Any counters on the exiled permanent will cease to exist.