According to Islamic tradition, the Prophet Idris did not die but was taken bodily to paradise.
Prophet Idris and Islamic Tradition
In Islam, Idrīs is a prophet mentioned in the Qurʾān as an immortal figure. The Britannica reference states that according to tradition, Idrīs appeared sometime between the prophets Adam and Noah and transmitted divine revelation through several books. Rather than dying, he was taken directly to paradise to spend eternity with God. Therefore, Idrīs did not die in heaven. He bypassed death altogether and was taken to paradise while still alive.
Therefore, the question implies that a prophet died in heaven. Based on the provided reference about Prophet Idris, this is incorrect; he did not die but was taken alive to paradise.