Praise be to Allah.
First: Among the fundamentals of Muslim belief is the belief that Allah Alone gives life and causes death. Whoever claims that anyone other than Allah has power over giving life and death has disbelieved. Even the polytheists during their pre-Islamic period of ignorance (Jahiliyyah) did not attribute this power to their idols and deities.
Allah Says (interpretation of the meaning): {How can you disbelieve in Allah when you were lifeless and He brought you to life; then He will cause you to die, then He will bring you back to life, and then to Him you will be returned} [Al-Baqarah 2:28].
And Allah Says (interpretation of the meaning): {That is because Allah is the Truth and because He gives life to the dead and because He is over all things competent} [Al-Hajj 22:6].
Allah has clearly shown the inability of the alleged deities to create, provide sustenance, give life, or cause death.
Allah Says (interpretation of the meaning): {Allah is the one who created you, then provided for you, then will cause you to die, and then will give you life. Are there any of your 'partners' who does anything of that? Exalted is He and high above what they associate with Him} [Ar-Rum 30:40].
Please see the answer to question # (75341).
Second: Allah the Mighty and Majestic has given the Dajjal the ability to bring a dead person to life. However, this enemy of Allah cannot do this through his own power and might, but only through Allah's permission and command, not independently.
In the Marfu` (attributed to the Prophet) Hadith of An-Nawwas ibn Sam`an, the Dajjal "will call a young man in his prime, strike him with a sword cutting him into two pieces like an archer's target, then call him, and the young man will come forward with his face beaming with a smile" (Narrated by Muslim, 5228).
Just as Allah the Mighty and Majestic gave `Isa (Jesus) (peace be upon him) the ability to bring the dead to life, heal the blind and the leper, and inform people about some unseen matters - all of which was only by the permission of Allah, the Glorified and Exalted - similarly, He gave the Dajjal some extraordinary abilities by His permission as a trial and test for His servants, Glory be to Him.
However, `Isa attributed these abilities to Allah's power and permission, while the wicked Dajjal attributes them to himself.
He (Jesus, peace be upon him) said to the Children of Israel, as Allah narrated about him in His Book (interpretation of the meaning): {Indeed I have come to you with a sign from your Lord in that I design for you from clay [that which is] like the form of a bird, then I breathe into it and it becomes a bird by permission of Allah. And I cure the blind and the leper, and I give life to the dead - by permission of Allah} [Al `Imran 3:49].
And Allah the Exalted Said: {[The Day] when Allah will say, "O `Isa (Jesus), Son of Mary, remember My favor upon you and upon your mother when I supported you with the Pure Spirit and you spoke to the people in the cradle and in maturity; and [remember] when I taught you writing and wisdom and the Torah and the Gospel; and when you designed from clay [what was] like the form of a bird with My permission, then you breathed into it, and it became a bird with My permission; and you healed the blind and the leper with My permission; and when you brought forth the dead with My permission} [Al-Ma'idah 5:110].
Ibn `Atiyyah (may Allah have mercy on him) said: "`Isa's (peace be upon him) creation by his hand and breathing with his mouth was only to demonstrate his involvement in the miracle and that it came through him. As for bringing something into existence from nothing and creating life in that clay, that is from Allah Alone, Who has no partner.
And His saying 'by permission of Allah' means: with His knowledge that I would do this, and His enabling me to do so." The reality of permission in something is: knowledge that it will be done, and enabling of it." (Al-Muharrar Al-Wajiz, 1/439)
Perhaps the questioner found it problematic when this occurred from Ad-Dajjal, but did not find it problematic from Allah's Prophet `Isa (Jesus) (peace be upon him). This is because `Isa (peace be upon him) establishes the oneness of Allah in people's hearts through these miracles. So how could Ad-Dajjal be given them while he claims lordship through them?
Al-Khattabi (may Allah have mercy on him) answered this, saying: "One might ask about this, saying:How is it possible that Allah, the Most High, manifests His Signs through His enemies? Giving life to the dead is a great sign from the signs of His prophets. So how could Ad-Dajjal be enabled to do this, while he is a liar who fabricates against Allah and claims lordship for himself?
The answer: This is possible as a way of testing His servants, when there are indicators that he is false and not truthful in his claim. These indicators are that Ad-Dajjal is blind in his right eye, with 'disbeliever' written on his forehead, which every Muslim can read. His claim is refuted by the mark of disbelief and the defect of blindness. Both of these testify that if he were truly a lord, he would be able to remove the blindness from his eye and erase the mark from his face. The signs given to the prophets are free from what contradicts them or opposes them, so the two cannot be confused, praise be to Allah." (A`lam Al-Hadith, 4/2331)
Please see question # (223174).
Third: It has been mentioned in some inauthentic Hadiths that what comes from the Dajjal is merely illusionary magic, with no reality to his claims of killing and giving life.
Al-Hafidh ibn Hajar (may Allah have mercy on him) said: "It was reported in the Hadith of `Abdullah ibn Mu`tamir: 'Then he will call for a man, according to what they witness, and he will order that he be killed. Then he will cut his limbs, separating each limb individually, and scatter them apart for people to see. Then he will gather them together, strike them with his staff, and suddenly the man will be standing!'" Then he will say: "I am Allah who gives death and brings life!" He said: "And all of this is sorcery; he bewitched people's eyes, and he does not actually do any of it". And this chain of narration is very weak." (Fat-h Al-Bari by Ibn Hajar, 13/104).
Despite this Hadith being weak, the signs and miraculous abilities that Allah gave to the Dajjal support that these events will occur in reality, not as illusions. The Companions asked the Prophet (peace and blessings of Allah be upon him) about the Dajjal: "How fast will he move across the earth?" The Prophet (peace and blessings of Allah be upon him) said: "Like a storm-driven rain. He will come to a people, call them, and they will believe in him and respond to him. He will command the sky to rain, and it will rain. He will command the earth to grow vegetation, and it will grow. Their grazing animals will return to them with the highest humps, fullest udders, and broadest sides [indicating abundance and excessive eating]. Then he will come to another people and call them, but they will reject his words. He will turn away from them, and they will be struck with drought, possessing nothing of their wealth." (Narrated by Muslim, 5228).
His commanding the sky to rain, the earth to grow vegetation, the fattening of his followers' animals, their full udders, the spread of their crops, the fertility of their lands, and their benefiting from all this - confirms that this is not mere illusion. Although these are real miraculous events, Allah has placed in them an obvious flaw and clear evidence of the Dajjal's falsehood and the invalidity of his claim. The believer sees this with his insight and is saved, while the misguided doubter is blinded to it and perishes.
Ibn Al-Jawzi (may Allah have mercy on him) said: "This doubt was not left until it was immediately refuted; for in this Hadith, he attempts to kill him again but cannot, and he orders his killing but fails, and he tries to slaughter him but when he strikes his neck against copper, he is unable!" So what benefit was his first miracle when he was exposed in the second attempt? Thus it became known that the first instance was from Allah, the Mighty and Majestic, to set up a doubt alongside the evidence, thereby requiring the intellect to refute it. (Kashf Al-Mushkil min Hadith As-Sahihayn, 3/117). Please see: (Fat-h Al-Bari, 13/103).
And Allah knows best.