No nation can afflict any harm upon you other than what Allāh has destined for you, even if they gathered together for this purpose.
No nation can remove a harm from you what Allāh has destined for you, even if they gathered together for this purpose.
Ibn Abbas said
One day I was behind the Prophet (peace and blessings of Allāh be upon him) [riding on the same mount] and he said, “O young man, I shall teach you some words [of advice]: Be mindful of Allāh and Allāh will protect you. Be mindful of Allāh and you will find Him in front of you. If you ask, then ask Allāh [alone]; and if you seek help, then seek help from Allāh [alone]. And know that if the nation were to gather together to benefit you with anything, they would not benefit you except with what Allāh had already prescribed for you. And if they were to gather together to harm you with anything, they would not harm you except with what Allāh had already prescribed against you. The pens have been lifted and the pages have dried.” [At-Tirmidhi, Saheeh]
أَمَّن يُجِيبُ ٱلْمُضْطَرَّ إِذَا دَعَاهُ وَيَكْشِفُ ٱلسُّوٓءَ وَيَجْعَلُكُمْ خُلَفَآءَ ٱلْأَرْضِ ۗ أَءِلَٰهٌ مَّعَ ٱللَّهِ ۚ قَلِيلًا مَّا تَذَكَّرُونَ
Is He [not best] who responds to the desperate one when he calls upon Him and removes evil and makes you inheritors of the earth? Is there a deity with Allāh? Little do you remember. [Surah an-Naml 27:62]
مَّا يَفْتَحِ ٱللَّهُ لِلنَّاسِ مِن رَّحْمَةٍ فَلَا مُمْسِكَ لَهَا ۖ وَمَا يُمْسِكْ فَلَا مُرْسِلَ لَهُۥ مِنۢ بَعْدِهِۦ ۚ وَهُوَ ٱلْعَزِيزُ ٱلْحَكِيمُ
Whatever Allāh grants to people of mercy – none can withhold it; and whatever He withholds – none can release it thereafter. And He is the Exalted in Might, the Wise. [Surah Faatir 35:2]