At-Tawbah 9:109
أَفَمَنْ أَسَّسَ بُنْيَـٰنَهُۥ عَلَىٰ تَقْوَىٰ مِنَ ٱللَّهِ وَرِضْوَٰنٍ خَيْرٌ أَم مَّنْ أَسَّسَ بُنْيَـٰنَهُۥ عَلَىٰ شَفَا جُرُفٍ هَارٍ فَٱنْهَارَ بِهِۦ فِى نَارِ جَهَنَّمَ ۗ وَٱللَّهُ لَا يَهْدِى ٱلْقَوْمَ ٱلظَّـٰلِمِينَ
Afaman assasa bunyanahu AAalataqwa mina Allahi waridwanin khayrunam man assasa bunyanahu AAala shafa jurufinharin fanhara bihi fee narijahannama wallahu la yahdee alqawma aththalimeen
Then is one who laid the foundation of his building on righteousness [with fear] from Allāh and [seeking] His approval better or one who laid the foundation of his building on the edge of a bank about to collapse, so it collapsed with him into the fire of Hell? And Allāh does not guide the wrongdoing people.
Then tell me, which one is better, whether the one who has founded his building on fear of Allah and on search of His pleasure, or the one who has founded his building on the edge of an abyss that is about to collapse, then it did collapse with him into the fire of Jahannam ? Allah does not give guidance to the unjust people.