“I hope to have God on my side, but I must have Kentucky!”
See, for example, Albert D. Richardson (1865), The Secret Service, the Field, the Dungeon, and the Escape. The quotation is based on a comment by Rev. Moncure D. Conway about the progress of the Civil War.
It is evident that the worthy President would like to have God on his side: he must have Kentucky.
Moncure D. Conway (1862), The Golden Hour
Misattributed