Yes the Confederates did the same.
But as Lincoln noted there is a difference in praying for victory vs the presumption that God is actually behind what you’re doing. (And the way you’re doing it.)
Thats hardly God-washing (whatever that is). And I see no presumption that God has taken any side.