Ubayy bin Kaab reported,

The Messenger of Allah ﷺ reported that on the night he was taken on the night journey, he noticed a pleasant fragrance and asked, "Jibreel, what is this lovely scent?"Jibreel replied, "This is the fragrance from the grave of the hairdresser, her two sons, and her husband."The origin of their story was this. Khidr was among the nobles of the Children of Israel, and his route used to pass by a monk in his hermitage. The monk would come down to him and teach him Islam. When Khidr came of age, his father married him to a woman, and Khidr taught her the faith, taking from her a pledge that she would not disclose it to anyone. He did not approach women, so he divorced her. Then his father married him to another woman, and he taught her as well, taking from her the same pledge of secrecy. One of them kept his secret, but the other exposed him.So he fled until he reached an island in the sea. Two men came along gathering firewood and saw him. One of them concealed what he had seen, but the other revealed it, saying, "I have seen Khidr."He was asked, "Who else saw him with you?"He said, "So-and-so."That man was questioned, but he kept the secret. In their religion, anyone who lied was put to death.The man then married the woman who had kept the secret. While she was once combing the hair of Pharaoh's daughter, the comb fell from her hand, and she said, "May Pharaoh perish."The girl told her father. The woman had two sons and a husband, so Pharaoh sent for them and tried to coax the woman and her husband to renounce their religion, but they refused.He said, "I am going to kill you."They replied, "As a kindness to us, if you do kill us, place us together in one grave."He did so. When the Prophet ﷺ was taken on the night journey, he noticed the pleasant fragrance and asked Jibreel about it, and Jibreel informed him.

Ibn Majah 4030

Daif

حدثنا هشام بن عمار حدثنا الوليد بن مسلم حدثنا سعيد بن بشير عن قتادة عن مجاهد عن ابن عباس

عن أبي بن كعب

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

ابن ماجه 4030ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Tribulations
Chapter
Patience in the face of affliction
Numbering
Darussalam 4030
Ibn Majah 4030