Surah As-Saaffaat

37:98

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

And they intended for him a plan, but We made them the most debased.

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.