Yahya related to me from Malik from Nafi that Abdullah ibn Umar used to say, "When a sick man is unable to prostrate he should motion with his head, and not raise anything to his forehead."
Muwatta Malik Book 9, Hadith 82