Sayyiduna Ali (may Allah be pleased with him) said: "Ever since the Messenger of Allah (peace and blessings be upon him) passed his blessed hand over my face and put his saliva in my eyes on the day of Khaybar, when he gave me the banner, I have never had any trouble with my eyes, nor have I ever had a headache."
Related hadith on this topic