Sahih al-Bukhari, Book 60, Hadith 75 (Bukhari 3262)

Narrated Abu Huraira:

The Prophet (ﷺ) said, "Al-Khadir was named so because he sat over a barren white land, it turned green with plantation after (his sitting over it."