Maliks Muwatta Book 9, Hadith Number 77.
Section : How to Do the Prayer in General.
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.”