How can someone which made miracles end in hell?

There may be some who, in the beginning, believed rightly and assiduously labored at virtue. They may have even worked miracles and prophesied and cast out demons. And yet later they are found turning aside to evil, to selfassertive deception and desire. Of these Jesus remarks that he “never knew them.” He ranks them as equivalent to those who were never known by him at all. Even if they at the outset had lived virtuously, they ended up condemned. God knows those whom he loves, and he loves those who singlemindedly believe in him and do the things that please him.

So, we never, ever should trust in ourselves till the moment of our death. Only our humility, faith and perseverance in good deeds will save us.

Based on Saint Cyril of Alexandria