Jami` at-Tirmidhi, Book 47, Hadith 201 (Tirmidhi 3233)

Narrated Sa'eed bin Jubair:

"I said to Ibn 'Abbas: 'Nawf Al-Bikali claims that Musa, of Banu Isra'il is not the companion of Al-Khidr. He said: 'The enemy of Allah has lied. I heard Ubayy bin Ka'b saying: "I heard the Messenger of Allah (ﷺ) say 'Musa stood to deliver a Khutbah to the children of Isra'il. He was asked: "Who is the most knowledgeable among the people?" He said: "I am the most knowledgeable." So Allah admonished him, since he did not refer the knowledge back to Him. Allah revealed to him: "A slave, among My slaves at the junction of the two seas, is more knowledgeable than you." So Musa said: "O Lord! How can I meet him?" He said to him: "Carry a fish in a basket, wherever you lose the fish, then he is there." So he set off, and his boy set off with him - and he was Yusha' bin Nun. Musa put a fish in a basket, he and the boy set off walking, until when they reached a rock, Musa and his boy fell asleep. The fish was flopping around in the basket, falling into the sea.' He said: 'Allah held back the flow of water until it was like a tunnel, and the fish could glide. Musa and his boy were amazed. They set off the remainder of the day and the night, and Musa's companion forgot to inform him (of the escape of the fish). When Musa arose in the morning, he said to his boy: Bring us our morning meal; truly we have suffered much fatigue in this, our journey (18:62).' He said: 'He had not gotten tired until he passed the place which Allah had ordered him to go. He said: Do you remember when we betook ourselves to the rock? I indeed forgot the fish, none but Shaitan made me forget to remember it....