Surah Al-Anfal 8:30
وَإِذْ يَمْكُرُ بِكَ ٱلَّذِينَ كَفَرُوا۟ لِيُثْبِتُوكَ أَوْ يَقْتُلُوكَ أَوْ يُخْرِجُوكَ ۚ وَيَمْكُرُونَ وَيَمْكُرُ ٱللَّهُ ۖ وَٱللَّهُ خَيْرُ ٱلْمَـٰكِرِينَ
And [remember, O Muḥammad], when those who disbelieved plotted against you to restrain you or kill you or evict you [from Makkah]. But they plan, and Allāh plans. And Allāh is the best of planners.
Translation: Saheeh International
Tafsir
And remember O Muhammad (s) when the disbelievers — who had gathered to discuss your affair at the council assembly — were plotting against you to confine you to chain you up and imprison you or slay you — all of them acting as assassins of one man — or to expel you from Mecca and they were plotting against you and …
Excerpt from Tafsir al-Jalalayn, commentary on 8:30, via Quran.com. The reader has the full commentary and 9 more tafsirs.