Muhammad bin Sirin used to say: When a sick person is unable to prostrate, he should pray by gesture.