There are no atheists in foxholes
"There are no atheists in foxholes" is an aphorism used to suggest that times of extreme stress or fear can prompt belief in a higher power. In the context of actual warfare, such a sudden change in belief has been called a foxhole conversion.
Source: Wikipedia — There are no atheists in foxholes (CC BY-SA 4.0)