The story
From the maxim trust in God and keep your powder dry, attributed to English statesman Oliver Cromwell; in the days of muskets, soldiers needed to keep their bags of gunpowder dry so they could load their guns at short notice.
Etymology from Wiktionary, CC BY-SA 4.0.