Sura As-Saaffaat

37:98

فَأَرَادُوا۟ بِهِۦ كَيْدًۭا فَجَعَلْنَٰهُمُ ٱلْأَسْفَلِينَ

Och de hade [annat] ont i sinnet mot honom, men Vi korsade [deras planer].

Tafsir 37:98

So the people of Abraham intended to do evil to Abraham by destroying him so they could be saved from him, but I made them the losers when I made the fire cool and safe for him.