The Quran tells some prophets' stories in detail and mentions others in only a few verses. Idris, peace be upon him, is one of the latter. The Quran does not tell us the events of his life; it tells us what kind of man he was.
وَٱذۡكُرۡ فِي ٱلۡكِتَٰبِ إِدۡرِيسَۚ إِنَّهُۥ كَانَ صِدِّيقٗا نَّبِيّٗا وَرَفَعۡنَٰهُ مَكَانًا عَلِيًّا
“And mention in the Book, Idrees. Indeed, he was a man of truth and a prophet. And We raised him to a high station.”
Surah Maryam 19:56–57
Translation: Saheeh International (QuranEnc)
He was a siddiq — a man deeply devoted to the truth in word and deed — and a prophet, and Allah raised him to a high station.
In Surah al-Anbiya his name comes with Isma'il and Dhul-Kifl among the patient. Allah admitted them into His mercy, for they were among the righteous.
❝ HadithOn the night of the Mi'raj the Messenger of Allah ﷺ met several prophets in the heavens; in the fourth heaven he met Idris.Sahih Muslim 162 · Sahih
ⓘ Many tales are told about Idris; most have no reliable source. Only what is in the Quran and sahih hadith is kept here.