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