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."
عَنِ النَّبِيِّ ﷺ قَالَ إِنَّمَا سُمِّيَ الْخَضِرُ أَنَّهُ جَلَسَ عَلَى فَرْوَةٍ بَيْضَاءَ فَإِذَا هِيَ تَهْتَزُّ مِنْ خَلْفِهِ خَضْرَاءَ