hang by a thread vs leave to luck

hang by a thread

verb
  • To be in danger, calling for precise caution; to be in a precarious situation. 

leave to luck

How often have the words hang by a thread and leave to luck occurred in a corpus of books? (source: Google Ngram Viewer )