Surah Al-A'raf (الأعراف) · verse 177 (Meccan · Juz 9 · page 173)
سَآءَ مَثَلًا ٱلْقَوْمُ ٱلَّذِينَ كَذَّبُوا۟ بِـَٔايَٰتِنَا وَأَنفُسَهُمْ كَانُوا۟ يَظْلِمُونَ ﴿177﴾
التفسير الميسر
قَبُحَ مثلا مثلُ القوم الذين كذَّبوا بحجج الله وأدلته، فجحدوها، وأنفسهم كانوا يظلمونها؛ بسبب تكذيبهم بهذه الحجج والأدلة
Sahih International
How evil an example [is that of] the people who denied Our signs and used to wrong themselves
Marmaduke Pickthall
Evil as an example are the folk who denied Our revelations, and were wont to wrong themselves
Abdullah Yusuf Ali
Evil as an example are people who reject Our signs and wrong their own souls