Allah the Exalted said:
(21) Those who disbelieve in the signs of Allah and kill the prophets without right and kill those who order justice from among the people - give them tidings of a painful punishment. (22) They are the ones whose deeds have become worthless in this world and the Hereafter, and for them there will be no helpers.
إن الذين يكفرون بآيات الله ويقتلون النبيين بغير حق ويقتلون الذين يأمرون الناس بالقسط فبشرهم بعذاب أليم، أولئك الذين حبطت أعمالهم في الدنيا والآخرة وما لهم من ناصرين [Ali 'Imran 3:21-22]
I think from here
their deeds have become worthless in this world and the Hereafter
أعمالهم في الدنيا والآخرة [Al-Baqarah 2:217]
How? That is, they kill the prophets and they are in the end... that is, in the end their deeds are nullified, meaning their might and their arrogance. This is a good aspect. Is there anything else? Their righteous deeds did not benefit them. Yes, if they do not benefit, they become nullified. And even if they benefited from them in this world, because they were not beneficial for them in the Hereafter, they became lost, as He the Exalted said:
Say, "Indeed, the losers are the ones who will lose themselves and their families on the Day of Resurrection
قل إن الخاسرين الذين خسروا أنفسهم وأهليهم يوم القيمة [Az-Zumar 39:15]
.