Abu Dharr used to relate that the Messenger of Allah ﷺ said, "The roof of my house was opened while I was in Mecca. Jibril descended, opened my chest, and washed it with the water of Zamzam. Then he brought a golden basin filled with wisdom and faith, emptied it into my chest, and closed it. He then took me by the hand and ascended with me to the heaven.When we reached the lowest heaven, Jibril said to its gatekeeper, 'Open.'The gatekeeper asked, 'Who is this?'He answered, 'This is Jibril.'The gatekeeper asked, 'Is anyone with you?'He replied, 'Muhammad is with me.'The gatekeeper asked, 'Has he been sent for?'Jibril said, 'Yes, so open.'When we entered the lowest heaven, there was a man with figures on his right and figures on his left. When he looked to his right, he laughed, and when he looked to his left, he wept. He said, 'Welcome to the righteous Prophet and the righteous son.'I asked, 'Jibril, who is this?'He replied, 'This is Adam, and these figures on his right and left are the souls of his descendants. Those on the right are the people of Paradise, and the figures on his left are the people of the Fire. So when he looks to his right he laughs, and when he looks to his left he weeps.'Then Jibril ascended with me until we reached the second heaven. He said to its gatekeeper, 'Open.' Its gatekeeper said to him the same thing the first one had said, then opened the gate."Anas said, "He mentioned that he found Idris, Musa, Isa, and Ibrahim in the heavens, but it was not clear to me in what order their stations were, except that he mentioned finding Adam in the lowest heaven and Ibrahim in the sixth."Anas continued, "When Jibril passed by Idris, Idris said, 'Welcome to the righteous Prophet and the righteous brother.'I asked, 'Who is this?'He replied, 'This is Idris.'Then I passed by Musa, who said, 'Welcome to the righteous Prophet and the righteous brother.'I asked, 'Who is this?'He replied, 'This is Musa.'Then I passed by Isa, who said, 'Welcome to the righteous Prophet and the righteous brother.'I asked, 'Who is this?'He replied, 'This is Isa.'Then I passed by Ibrahim, who said, 'Welcome to the righteous Prophet and the righteous son.'I asked, 'Who is this?'He replied, 'This is Ibrahim.'"Then he related the hadith in its full length.
كان أبو ذر يحدث أن رسول الله ﷺ قال: فرج سقف بيتي وأنا بمكة، فنزل جبريل ففرج صدري ثم غسله بماء زمزم، ثم جاء بطست من ذهب ممتلئ حكمة وإيمانا فأفرغها في صدري، ثم أطبقه ثم أخذ بيدي فعرج بي إلى السماء، فلما جاء إلى السماء الدنيا قال جبريل لخازن السماء افتح قال: من هذا؟ قال: هذا جبريل قال: معك أحد؟ قال مع محمد قال: أرسل إليه قال: نعم فافتح فلما علونا السماء الدنيا إذا رجل عن يمينه أسودة وعن يساره أسودة فإذا نظر قبل يمينه ضحك، وإذا نظر قبل شماله بكى فقال مرحبا بالنبي الصالح والابن الصالح قلت: من هذا يا جبريل قال: هذا آدم وهذه الأسودة عن يمينه وعن شماله نسم بنيه فأهل اليمين منهم أهل الجنة والأسودة التي عن شماله أهل النار. فإذا نظر قبل يمينه ضحك وإذا نظر قبل شماله بكى ثم عرج بي جبريل حتى أتى السماء الثانية فقال لخازنها افتح فقال له خازنها مثل ما قال الأول ففتح. قال أنس: فذكر أنه وجد في السموات إدريس وموسى وعيسى وإبراهيم ولم يثبت لي كيف منازلهم غير أنه قد ذكر أنه وجد آدم في السماء الدنيا وإبراهيم في السادسة. وقال أنس فلما مر جبريل بإدريس قال: مرحبا بالنبي الصالح والأخ الصالح فقلت: من هذا؟ قال: هذا إدريس ثم مررت بموسى فقال مرحبا بالنبي الصالح والأخ الصالح فقلت: من هذا؟ قال: هذا موسى ثم مررت بعيسى فقال: مرحبا بالنبي الصالح والأخ الصالح قلت: من هذا؟ قال: عيسى ثم مررت بإبراهيم فقال: مرحبا بالنبي الصالح والابن الصالح فقلت من هذا؟ قال: هذا إبراهيم. فذكر الحديث بطوله.
Bukhari narrated it in the Book of Prayer (349), and in the Book of the Stories of the Prophets (3342) as a suspended narration, and Muslim narrated it in the Book of Faith (162: 263), both from the hadith of Yunus bin Yazid Ayli, from Zuhri, who said, Anas said, "Abu Dharr used to narrate that the Messenger of Allah ﷺ," and he related it. It has come explicitly stated that Idris is in the fourth heaven in the hadith of Malik bin Sasaa.