If Khidr had been alive during the time of the Prophet (saw), it would have been obligatory for him to come to the Prophet (saw) and do jihad alongside him - Ibn Taymiyya

Majmua al-Rasail al-Kubra Ibn Taymiyyah cover
If Khidr had been alive during the time of the Prophet (saw), it would have been obligatory for him to come to the Prophet (saw) and do jihad alongside him - Ibn Taymiyya