The ending of DS9 Season 6 episode 6 Sacrifice of the Angels where Sisko begs the Prophets to intervene on his behalf and stop the Dominion Fleet of 2,800 ships that is entering the wormhole. Was that Deus Ex Machina or genuine writing device since the opposition against the Federation had been stacked so high?
Ira Steven Behr and SFDebris have defended the ending stating it's not Deus Ex Machina, but divine intervention is a hard charge to defend against when it's so blatantly used. Doesn't help that Sisko is a religious figure for the wormhole aliens and is half Prophet due to his conception.