Divine intervention to resolve a tragic dilemma (4,2,7)
I believe the answer is:
deus ex machina
(Other definitions for deus ex machina that I've seen before include "Unexpected problem solver" , "An unlikely solution" , "Contrived plot solution" , "unlikely device to resolve difficulty" , "Contrived agent who unexpectedly solves the insoluble" .)