Abdullah bin Umar reported,

The Messenger of Allah ﷺ visited a sick companion, and I was with him. He entered upon the man while he was praying on a piece of wood, placing his forehead on the wood. The Messenger of Allah ﷺ gestured to him, so he threw the wood aside and took a pillow instead.The Messenger of Allah ﷺ said to him, "Set it aside. If you are able to prostrate on the ground, do so. Otherwise, gesture with your head, and make your prostration lower than your bowing."

Azami 3006

Hasan

عن ابن عمر قال

عاد رسول الله ﷺ رجلا من أصحابه مريضا، وأنا معه فدخل عليه وهو يصلي على عود، فوضع جبهته على العود، فأومأ إليه فطرح العود، وأخذ وسادة، فقال له رسول الله ﷺ: دعها عنك إن استطعت أن تسجد على الأرض وإلا فأومئ إيماء، واجعل سجودك أخفض من ركوعك.

الأعظمي 3006حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Istikhara prayer, prayer of the sick, prayer on a ship, tasbih prayer, prayer of need, and prayer of desires
Section
Prayer of the sick
Numbering
Jami al-Kamil 3006 (2nd edition)
Azami 3006