Quote from
www.quaro.com"There is a controversy among exegetes of the Holy Qur'an with respect to the prophethood of Khidr (a).
Al-Fakhr al-Razi rejected six arguments presented by exegetes of the Holy Qur'an for the prophethood of Khidr.
Al-Shaykh al-Tusi cited Abu 'Ali al-Juba'i and Rummani (d. 384/994) as saying that Khidr (a) was a prophet, and attributed the rejection of this view to Ibn Akhshid (d. 326/937). But he himself made no comments on this issue.
According to al-Tha'labi, Khidr (a) is a prophet with a long life who is hidden from people.
And according to Baghawi, God gave knowledge of the interior to Khidr through inspiration, and most scholars believe that he is not a prophet."