Anas reported that whenever the Messenger of Allah ﷺ met an enemy, he would say, "O Allah, by You I maneuver, by You I attack, and by You I fight."
أن رسول الله ﷺ كان يقول إذا لقي العدو: اللهم بك أحول، وبك أصول، وبك أقاتل.
Ahmad (23928) narrated it from Rawh, who said, Hammad narrated to us, from Thabit, from Abdul-Rahman bin Abu Layla, from Suhayb, and he mentioned it. Its isnad is sahih.