Hadith.1035 - Samahat ibn Mehran asked about a man who has an eye condition (cataracts or similar) and undergoes a procedure to remove the issue, requiring him to lie on his back for many days—forty days, or possibly fewer or more. As a result, he can only perform his prayers by gestures due to his condition.
The response was: "There is no harm in that."