I heard him, meaning the Prophet ﷺ, supplicating against the confederates, saying, "Allah, Revealer of the Book, Swift in reckoning, defeat the confederates. Allah, defeat them and shake them."
حدثنا أحمد بن منيع حدثنا يزيد بن هارون أنبأنا إسمعيل بن أبي خالد
سمعته يقول يعني النبي ﷺ يدعو على الأحزاب فقال اللهم منزل الكتاب سريع الحساب اهزم الأحزاب اللهم اهزمهم وزلزلهم
Agreed upon. Bukhari narrated it in the Book of jihad and Expeditions, Chapter on Invoking against the Polytheists with Defeat and Upheaval, no. 2933, and Muslim, no. 1742, from the hadith of Ismail bin Abu Khalid, with this wording.There is also a narration on this topic from Ibn Masud [Nasai in Kubra, no. 10442, and Amal al-Yawm wal-Layla, no. 606].