Ubayy bin Kaab reported,

I heard the Messenger of Allah ﷺ say,"While Musa عليه السلام was among his people, reminding them of the days of Allah, and the days of Allah are His blessings and His trials, he said, 'I do not know of any man on earth better or more knowledgeable than myself.'So Allah revealed to him, 'I know better where goodness lies, or with whom it lies. There is a man on earth more knowledgeable than you.'Musa said, 'My Lord, guide me to him.'He was told, 'Take a salted fish as your provision. He is where you lose the fish.'So Musa set out with his servant boy until they reached the rock. Musa grew drowsy and fell asleep, leaving his servant. The fish stirred in the water, and the water would not close over its path but became like an opening.The servant said, 'Shall I not catch up with the prophet of Allah and inform him?' But he forgot.When they had passed the place, "he said to his servant, 'Bring us our meal. We have certainly suffered fatigue from this journey of ours.'" [Kahf 18:62] No fatigue had touched them until they had passed beyond it.Then the servant remembered. "He said, 'Did you see when we took refuge at the rock? Indeed, I forgot the fish, and none made me forget to mention it except Satan. And it took its course into the sea amazingly.' Musa said, 'That is what we were seeking.' So they returned, retracing their steps." [Kahf 18:63–64]The servant showed him the place of the fish and said, 'Here is what was described to me.'Musa went searching, and there was Khidr, wrapped in a garment, lying on his back, or he said, on the nape of his neck.Musa said, 'Peace be upon you.'He uncovered his face and said, 'And upon you be peace. Who are you?'He said, 'I am Musa.'He asked, 'Which Musa?'He said, 'The Musa of the Children of Israil.'He asked, 'What has brought you here?'He said, 'I have come so that "you may teach me from what you have been taught of right guidance.' He said, 'Indeed, you will never be able to bear with me patiently. And how can you have patience for what you do not encompass in knowledge?'" [Kahf 18:66–68] Something I have been commanded to do, when you see it, you will not have patience."He said, 'You will find me, if Allah wills, patient, and I will not disobey you in any order.' He said, 'Then if you follow me, do not ask me about anything until I make of it mention to you.' So they set out, until when they had embarked on the ship, he tore a hole in it." [Kahf 18:69–71]He sought it out deliberately. Musa عليه السلام said to him, "'Have you torn it open to drown its people? You have certainly done a grave thing.' He said, 'Did I not say that you would never be able to bear with me patiently?' He said, 'Do not blame me for what I forgot, and do not burden me with difficulty in my matter.' So they set out," [Kahf 18:71–74] until they met some boys playing.He went to one of them at first sight and killed him. Musa عليه السلام was terribly shocked at this and said, "'Have you killed a pure soul for other than having killed a soul? You have certainly done a terrible thing.'" [Kahf 18:74]At this point the Messenger of Allah ﷺ said, "May Allah's mercy be upon us and upon Musa. Had he not been hasty, he would have seen wonders. But a sense of shame overtook him from his companion. 'He said, If I should ask you about anything after this, then do not keep me as a companion. You have already received from me an excuse.'" [Kahf 18:76]Had he been patient, he would have seen wonders.Whenever he mentioned any of the prophets, he would begin with himself, "May Allah's mercy be upon us and upon my brother so-and-so, may Allah's mercy be upon us.""So they set out, until when they came to the people of a town" [Kahf 18:77] of mean folk, and they wandered through the gatherings "asking its people for food, but they refused to offer them hospitality. They found therein a wall about to collapse, so he set it up straight. Musa said, 'If you wished, you could have taken for it a payment.' He said, 'This is the parting between me and you.'" [Kahf 18:77–78]Musa took hold of his garment.He said, "'I will inform you of the interpretation of that about which you could not have patience. As for the ship, it belonged to poor people working at sea,'" [Kahf 18:78–79] to the end of the verse. When the one who was seizing ships came, he found it damaged and passed it by, and afterward they repaired it with a plank."As for the boy," [Kahf 18:80] he had been stamped a disbeliever on the day he was created. His parents had grown attached to him, and had he reached maturity, he would have overwhelmed them with tyranny and disbelief. "So we wished that their Lord would substitute for them one better in purity and nearer to mercy. As for the wall, it belonged to two orphan boys in the city, and beneath it was..." [Kahf 18:81–82] to the end of the verse.

Muslim 6165

Sahih

حدثنا أبي بن كعب قال

سمعت رسول الله ﷺ يقول إنه بينما موسى عليه السلام في قومه يذكرهم بأيام الله وأيام الله نعماؤه وبلاؤه إذ قال ما أعلم في الأرض رجلا خيرا وأعلم مني قال فأوحى الله إليه إني أعلم بالخير منه أو عند من هو إن في الأرض رجلا هو أعلم منك قال يا رب فدلني عليه قال فقيل له تزود حوتا مالحا فإنه حيث تفقد الحوت قال فانطلق هو وفتاه حتى انتهيا إلى الصخرة فعمي عليه فانطلق وترك فتاه فاضطرب الحوت في الماء فجعل لا يلتئم عليه صار مثل الكوة قال فقال فتاه ألا ألحق نبي الله فأخبره قال فنسي فلما تجاوزا {قال لفتاه آتنا غداءنا لقد لقينا من سفرنا هذا نصبا} قال ولم يصبهم نصب حتى تجاوزا قال فتذكر {قال أرأيت إذ أوينا إلى الصخرة فإني نسيت الحوت وما أنسانيه إلا الشيطان أن أذكره واتخذ سبيله في البحر عجبا قال ذلك ما كنا نبغي فارتدا على آثارهما قصصا} فأراه مكان الحوت قال ها هنا وصف لي قال فذهب يلتمس فإذا هو بالخضر مسجى ثوبا مستلقيا على القفا أو قال على حلاوة القفا قال السلام عليكم فكشف الثوب عن وجهه قال وعليكم السلام من أنت قال أنا موسى قال ومن موسى قال موسى بني إسرائيل قال مجيء ما جاء بك قال جئت ل {تعلمني مما علمت رشدا قال إنك لن تستطيع معي صبرا وكيف تصبر على ما لم تحط به خبرا} شيء أمرت به أن أفعله إذا رأيته لم تصبر {قال ستجدني إن شاء الله صابرا ولا أعصي لك أمرا قال فإن اتبعتني فلا تسألني عن شيء حتى أحدث لك منه ذكرا فانطلقا حتى إذا ركبا في السفينة خرقها} قال انتحى عليها قال له موسى عليه السلام {أخرقتها لتغرق أهلها لقد جئت شيئا إمرا قال ألم أقل إنك لن تستطيع معي صبرا قال لا تؤاخذني بما نسيت ولا ترهقني من أمري عسرا فانطلقا حتى إذا لقيا} غلمانا يلعبون قال فانطلق إلى أحدهم بادي الرأي فقتله فذعر عندها موسى عليه السلام ذعرة منكرة {قال أقتلت نفسا زاكية بغير نفس لقد جئت شيئا نكرا} فقال رسول الله ﷺ عند هذا المكان رحمة الله علينا وعلى موسى لولا أنه عجل لرأى العجب ولكنه أخذته من صاحبه ذمامة {قال إن سألتك عن شيء بعدها فلا تصاحبني قد بلغت من لدني عذرا} ولو صبر لرأى العجب قال وكان إذا ذكر أحدا من الأنبياء بدأ بنفسه رحمة الله علينا وعلى أخي كذا رحمة الله علينا {فانطلقا حتى إذا أتيا أهل قرية} لئاما فطافا في المجالس ف {استطعما أهلها فأبوا أن يضيفوهما فوجدا فيها جدارا يريد أن ينقض فأقامه قال لو شئت لاتخذت عليه أجرا قال هذا فراق بيني وبينك} وأخذ بثوبه قال {سأنبئك بتأويل ما لم تستطع عليه صبرا أما السفينة فكانت لمساكين يعملون في البحر} إلى آخر الآية فإذا جاء الذي يسخرها وجدها منخرقة فتجاوزها فأصلحوها بخشبة {وأما الغلام} فطبع يوم طبع كافرا وكان أبواه قد عطفا عليه فلو أنه أدرك أرهقهما طغيانا وكفرا {فأردنا أن يبدلهما ربهما خيرا منه زكاة وأقرب رحما وأما الجدار فكان لغلامين يتيمين في المدينة وكان تحته} إلى آخر الآية

مسلم 6165صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Virtues
Chapter
Virtues of Khidr عليه السلام
Numbering
Darussalam 6165
Muslim 6165