Mishkat al-Masabih
Abu Musa told that when the Prophet (ﷺ) feared a people he said, "O God, we put Thee in front of them, and we seek refuge in Thee from their evils." Ahmad and Abu Dawud transmitted it.
وَعَنْ أَبِي مُوسَى: أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ كَانَ إِذَا خَافَ قَوْمًا قَالَ: «اللَّهُمَّ إِنَّا نَجْعَلُكَ فِي نُحُورِهِمْ وَنَعُوذُ بِكَ من شرورهم» . رَوَاهُ أَحْمد وَأَبُو دَاوُد
Reference