Religion is in the heart, not in the knees.
1830 The Devil's Ducat, act 1, sc.2.

Religion is in the heart, not in the knees.