Sure Al-Israa

17:60

وَإِذْ قُلْنَا لَكَ إِنَّ رَبَّكَ أَحَاطَ بِٱلنَّاسِ ۚ وَمَا جَعَلْنَا ٱلرُّءْيَا ٱلَّتِىٓ أَرَيْنَٰكَ إِلَّا فِتْنَةًۭ لِّلنَّاسِ وَٱلشَّجَرَةَ ٱلْمَلْعُونَةَ فِى ٱلْقُرْءَانِ ۚ وَنُخَوِّفُهُمْ فَمَا يَزِيدُهُمْ إِلَّا طُغْيَٰنًۭا كَبِيرًۭا

Und als Wir zu dir sagten: "Gewiß, dein Herr umfaßt die Menschen." Und Wir haben das Gesicht, das Wir dich sehen ließen, nur zu einer Versuchung für die Menschen gemacht, und (ebenso) den verfluchten Baum im Qur'an. Wir flößen ihnen Furcht ein, doch mehrt ihnen dies nur das Übermaß an Auflehnung.

Tafsir 17:60

And remember, O Messenger, when I said to you: Your Lord has encompassed the people in His power and they are in His control. Allah will protect you from them, so convey what you have been ordered to convey. And I did not make what I clearly showed you on the Night Journey except as a test for the people; do they believe it or reject it? And I did not make the tree of Zaqqum, which is mentioned in the Qur’ān as growing from the bottom of the Hellfire, except as a test for them. Thus, if they do not believe in these signs, they will never believe in anything else. And I frighten them by sending signs, but they do not increase through them except in disbelief and remaining further in misguidance.