The Messenger of Allah ﷺ supplicated against the Confederates, saying, "O Allah, Revealer of the Book, Swift in reckoning, defeat the Confederates. O Allah, defeat them and shake them."
دعا رسول الله ﷺ على الأحزاب فقال: اللهم منزل الكتاب، سريع الحساب، اهزم الأحزاب، اللهم اهزمهم وزلزلهم.
Bukhari narrated it in Maghazi (4115) and Muslim in Jihad and Sayr (21:1741), both through the route of Ismail bin Abu Khalid, from Abdullah bin Abu Awfa, who mentioned it.