かなわぬ とき神頼
kanawanu tokino kamidanomi

Idiomatic Expression

1. turning to God only in one's trouble