Muwatta Malik 405
Shortening the Prayer
وَحَدَّثَنِي عَنْ مَالِكٍ، عَنْ نَافِعٍ، أَنَّ عَبْدَ اللَّهِ بْنَ عُمَرَ، كَانَ يَقُولُ إِذَا لَمْ يَسْتَطِعِ الْمَرِيضُ السُّجُودَ أَوْمَأَ بِرَأْسِهِ إِيمَاءً وَلَمْ يَرْفَعْ إِلَى جَبْهَتِهِ شَيْئًا .
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
Grading: Salim al-Hilali: Mauquf Sahih
Text from the public-domain hadith-api dataset. Numbering follows that dataset and can differ by a few from some printed editions — check the wording, not only the number.