It is permissible for a Muhrim to treat his eyes Sahih Muslim 1204 b

Arabic hadith text
وَحَدَّثَنَاهُ إِسْحَاقُ بْنُ إِبْرَاهِيمَ الْحَنْظَلِيُّ، حَدَّثَنَا عَبْدُ الصَّمَدِ بْنُ عَبْدِ الْوَارِثِ، حَدَّثَنِي أَبِي، حَدَّثَنَا أَيُّوبُ بْنُ مُوسَى، حَدَّثَنِي نُبَيْهُ بْنُ وَهْبٍ، أَنَّ عُمَرَ بْنَ عُبَيْدِ اللَّهِ بْنِ مَعْمَرٍ، رَمِدَتْ عَيْنُهُ فَأَرَادَ أَنْ يَكْحُلَهَا، فَنَهَاهُ أَبَانُ بْنُ عُثْمَانَوَأَمَرَهُ أَنْ يُضَمِّدَهَا بِالصَّبِرِوَحَدَّثَ عَنْ عُثْمَانَ بْنِ عَفَّانَ عَنِ النَّبِيِّ صلى الله عليه وسلم أَنَّهُ فَعَلَ ذَلِكَ
Translation

Nubaih b Wahb reported that the eyes of Umar b. Ubaidnllah b. Ma'mar were swollen, and he decided to use antimony. Aban b. 'Uthman forbade him to do so and commanded him to apply aloes on them, and reported on the authority of 'Uthman b. Affan that the Messenger of Allah (ﷺ) had done that.