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…

In the Quran

Jami at-Tirmidhi 3149