Daniel is usually considered by Muslims in general to have been a prophet and according to Shia Muslimhadith he was a prophet. Although he is not mentioned in the Qur'an, nor in hadith of Sunni Islam, Sunni Muslim reports of him are taken from Isra'iliyyat, which bear his name and which refer to his time spent in the den of the lions. There are debates, however, that go on about Daniel's time of preaching and while in reports of Shia Islam from the Shia Imams he is considered as a prophet, some Muslims from other branches of Islam believe that he was not a prophet but a saintly man. Some Muslim records suggest that a book regarding apocalyptic revelations was found in a coffin, which is supposed to have contained the remains of Daniel, which was brought to light at the time of the Muslim conquest of Tustar, and buried again at the request of Umar.
Background
has retained some records of the two figures name Daniel in the Hebrew Bible: the first being the sage of ancient times mentioned by Ezekiel and the second being the visionary who lived at the time of the captivity in Babylon, whose life was chronicled in the Book of Daniel, canonized in the current Hebrew Bible. The first figure is referred to as "Daniel the Elder" in Muslim writing, whilst the second figure is referred to as Daniel. Daniel's character in Muslim legend has shaped the figure in a similar way to that of the prophetIdris, as he is considered to have been a revealer of future mysteries, coupled with one who excelled in scientific matters. However, other scholars reject the differentiating and treat both Daniel the Elder and Daniel as one and the same. Also Ibn Tayymiyyah in his book Al Jawaab as Saheeh writes a lot about Daniel writing and foretelling Muhammad
Daniel in Muslim literature
recounts that it was Daniel who preached in Babylon, exhorting the people to return to God. He lived during the reign of Cyrus, and taught this prince the unity of God and the true religion of Islam. Key events from Daniel's life which are recounted in exegesis are the presence of Daniel and his companions in the court of Nebuchadnezzar; Nebuchadnezzar's dreams; the friction between Daniel and his detractors and his miraculous delivery from the den of the lions; and Belshazzar's feast and the deciphering of the mysterious writing. Other events from the Book of Daniel, such as Susanna and the Elders, play no part in tradition. One legend that is not found in Jewish tradition but appears in Muslim writings is that of Jeremiah meeting Daniel. A similar event involving Habakkuk and Daniel, however, is to be found in Lives of the Prophets. Ibn Abi Al-Dunya narrated the following, based on a chain of citations: Danyal also appears in The Thousand and One Nights. On Night 394, in the tale of ‘The Pious Jewish Woman’ he appears as a 12-year-old boy who mediates in the case of a womanfalsely accused of adultery. The book refers to him as a prophet.
Ibn Katihr records in his book of Al Biddyah Wan Nihya: It was narrated from Khaalid ibn Dinaar that Abu’l-‘Aaliyah said: When we conquered Tastar, we found in the treasury of al-Hormuzaan a bier on which was the body of a dead man, and by his head was a scripture of his. We took the scripture and took it to ‘Umar, and he summoned Ka‘b, who translated it into Arabic. I was the first man among the Arabs to read it, and I read it as I read this Qur'an. I said to Abu’l-‘Aaliyah: What was in it? He said: It was about you, your affairs, your religion, your talk, and what will happen after that. I said: What did you do with the man? He said: We dug thirteen different graves during the day, then at night we buried him and we levelled all the graves, so as to conceal its location from the people, so that they would not exhume him. I said: Why would people do that? He said: If rain was withheld from them, they would take his bier out and they would receive rain. I said: Who do you think the man was? He said: A man called Daniyal. I said: How long ago do you think he died? He said: Three hundred years ago. I said: Had anything of him changed? He said: No, except a few hairs at the back of his head, for the earth does not consume the Prophets, and wild animals cannot devour them.