—Letter to Massachusetts Militia, 11 October 1798
Although he was a very religious person, the actual point of his argument is that if you can't control yourself from within, you will be controlled from without. Religion was just the vehicle for self-control that he was most familiar with.
Compare/contrast with one of Ms. Kaminska's tweets earlier today:
FWIW I am also coming to the conclusion that democracy doesn’t work unless society is already homogenous due to other factors, whether culture, religion or ideology. This means liberalism and democracy only work for as long as everyone “freely” opts to think the same way.
— Izabella Kaminska (@izakaminska) May 10, 2022
As Madison (some say Hamilton, it was Madison) wrote in Federalist 51 [para 4]:
Although the Adams/Kaminska comparison does break down after a while.
For example, I'm pretty sure she never had to share a bed with Benjamin Franklin.