Prophet (SAW)'s Prayers

For pain of the eye
Read this and blow on the ailing eye:
بِسْمِ اللَّهِ اللَّهُمَّ أَذْهِبْ حَرَّهَا وَبَرْدَهَا وَوَصَبَهَا
"I take the name of Allah and blow, O Allah remove its heat, cold and sickness Then say by the will of Allah". (Hisn from Nisai etc)
For eye pain
اللَّهُمَّ مَتِّعْنِي بِبَصَرِي وَاجْعَلْهُ الْوَارِثَ مِنِّي وَأَرِنِي فِي الْعَدُوِّ ثَأْرِي وَانْصُرْنِي عَلَى مَنْ ظَلَمَنِي
"O Allah grant me benefit from my eyesight and keep it (maintain it) till my death and give me power over my enemies and give me aid against those who oppress me".