there are no atheists in foxholes

Etymology
In reference to the use of foxholes as a shelter in wartime.

Proverb

 * 1) In times of extreme stress or fear, even those who do not believe in a benevolent higher power will hope that one exists.