I asked the Messenger of Allah ﷺ about the prayer of a sick person, and he said, "Pray standing. If you cannot, then sitting. If you cannot, then on your side."Hannad narrated this to us, saying Waki narrated to us from Ibrahim bin Tahman, from Husayn Muallim, this hadith.
وقد روي هذا الحديث عن إبراهيم بن طهمان بهذا الإسناد إلا أنه يقول عن عمران بن حصين قال سألت رسول الله ﷺ عن صلاة المريض فقال صل قائما فإن لم تستطع فقاعدا فإن لم تستطع فعلى جنب حدثنا بذلك هناد حدثنا وكيع عن إبراهيم بن طهمان عن حسين المعلم بهذا الحديث
Bukhari also recorded it, Shortening the Prayer, chapter "If he cannot pray sitting, he should pray on his side," hadith no. 1117, from the hadith of Ibrahim bin Tahman with it, being the statement of Hasan Basri. Its chain of transmission is sahih.