text: If an opponent gains control of your creature and it phases out and the duration of the control-change effect expires before it phases in, that permanent phases in under your control as that opponent's appropriate untap step begins. If they leave the game before that untap step, it phases in as the next untap step begins after that turn would have begun.