Uzair wasn't a prophet, he was a very pious man whom Allah has singled out and showed him a great sign.
He memorized the Torah and also had a copy because at that time the Torah's were being destroyed by the tyrant at that time king Nebuchadnezzar.
I am unsure of why he departed though he did(Allah knows best)
As he walked past a desolate town in ruins he said "When will Allah give it life after its death?".
So as he fell asleep later in his journey and Allah made him die for 100 years, and brought back his life afterwards.
Allah placed an example to Uzair when he was brought back to life Allah told him to look at his food and it didn't change, then Allah told him to look at his donkey which was in bones and Allah showed him how he reassembled and put flesh into the donkey and restored it's life.
He went back to his house and his household couldn't recognize him,
"...except the maid, who was now an old blind woman. He prayed to God to
cure her blindness and she could see again. He meets his son who
recognized him by a mole between his shoulders and was older than he
The Torah which he had was rotting and crumpled at that time, so he re-wrote the whole thing from memory.
And Allah Knows Best, May Allah Forgive Me for any mistakes I made