It was narrated from Ubayy bin Ka’b that on the night when he (ﷺ) was taken on the Night Journey (Isra’), the Messenger of Allah (ﷺ) noticed a good fragrance and said:
“O Jibril, what is this good fragrance?” He said: “This is the fragrance of the grave of the hairdresser and her two sons and her husband.” He said: “That began when Khadir, who was one of the nobles of the Children of Israel, used to pass by a monk in his cell. The monk used to meet him and he taught him Islam. When Khadir reached adolescence, his father married him to a woman. He taught her and made her promise not to teach it to anyone. He used not to touch women, so he divorced her, then his father married him to another woman, and he taught her and made her promise not to teach it to anyone. One of them kept the secret but the other disclosed it, so he fled until he came to an island in the sea. Two men came, gathering firewood, and saw him. One of them kept the secret but the other disclosed it and said: ‘I have seen Khadir.’ It was said: ‘Who else saw him besides you?’ He said: ‘So-and-so.’ (The other man) was questioned but he kept silent. According to their religion, the liar was to be killed. The woman who had kept the secret got married, and while she was combing the hair of Pharoah’s daughter, she dropped the comb and said: ‘May Pharoah perish!’ (The daughter) told her father about that. The woman had two sons and a husband. (Pharoah) sent for them, and tried to make the woman and her husband give up their religion, but they refused. He said: ‘I am going to kill you.’ They said: ‘It would be an act of kindness on your part, if you kill us, to put us in one grave.’ So he did that.” When the Prophet (ﷺ) was taken on the Night Journey (Isra’), he noticed a good fragrance and asked Jibril about it and he told him.”