Surah Al-Isra, ayah 60

17:60

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

Wa idh qulnā laka inna rabbaka ahāta bin-nāsi wamā ja'alnar-ru'yal-latī araynāka illā fitnatal lin-nāsi wash-shajaratal-mal'ūnata fil-qur'āni wanukhawwifuhum famā yazīduhum illā tughyānan kabīrā

And [remember, O Muḥammad], when We told you, "Indeed, your Lord has encompassed the people."757 And We did not make the sight which We showed you758 except as a trial for the people, as was the accursed tree [mentioned] in the Qur’ān. And We threaten [i.e., warn] them, but it increases them not except in great transgression.

Footnotes

757 In His knowledge and power, meaning that Allāh would protect him (ﷺ) from their harm.

758 During the miʿrāj (ascension) into the heavens.