Where does “ἀπὸ μηχανῆς θεός” come from?

Words derived from “ἀπὸ μηχανῆς θεός