Ishaaq Ibn Bishr reported, on the authority of Ibn Abbas and others, that Ezra was a saint and a wise man. He went out one day to his own farm, as was his custom. About noon he came to a deserted, ruined place and felt the heat. He entered the ruined town and dismounted his donkey, taking figs and grapes in his basket. He went under the shade of the khaiba tree and ate his food. Then he got up to look at what remained of the ruins. The people had long been lost, and he saw bones. "Oh! How will Allah ever bring it to life after its death?" Surah 2: 259
He said this not out of doubt but out of curiosity. Allah sent the Angel of Death to take his life. He remained dead for one hundred years.
After the one hundred years had passed and there had been changes in Israelite affairs, Allah sent an angel upon Ezra to revive his heart and his eyes in order for him to feel and see how Allah revives the dead. The angel said: "For how long did you sleep?" He said: "A day or part of a day." He said this because he knew he had slept early in the afternoon and woke up late in the afternoon. The angel said: "You remained asleep for one hundred years." He ate and drank the food which he had prepared before he was overtaken by that long sleep. Then the angel revived his donkey.
Almighty Allah said: "And look at your donkey! And thus We have made of you a sign for the people. Look at the bones, how We bring them together and clothe them with flesh." When this was clearly shown to him he said: "I know (now) that Allah is able to do all things." Surah 2: 259