Those who dug a fire-pit and burned believers for their faith — and were cursed in the Qur'an.
The story
A trench of fire
The People of the Trench dug a great ditch, filled it with fire, and sat around it, throwing in believers who refused to renounce their faith. Ibn Kathīr explains that their only grievance against the believers was that they believed in Allah, the Mighty, the Praiseworthy.
The Qur'an curses them and describes them sitting as witnesses over what they did to the believers. Ibn Kathīr explains that the believers' steadfastness — choosing the fire over renouncing faith — is itself the victory, and that the persecutors face a lasting punishment unless they repent.
The believers of the trench lost their lives but not their faith, and the Qur'an honours them forever. Worldly defeat and real victory are not the same.
The People of the Trench show both sides of persecution: the believers who chose the fire over disbelief are honoured, and their torturers are cursed in the Book until the Last Day.
Summaries of Ibn Kathīr's commentary on the linked āyāt, with authentic ḥadīth noted in the text where used. Verse links open Quran.com text and your chosen translation.