Narrated 'Imran bin Husain: had piles, so I asked the Prophet ﷺ about the prayer. He said, "Pray while standing and if you can't, pray while sitting and if you cannot do even that, then pray Lying on your side".
The Prophet Muhammad ﷺ was a great teacher who taught his followers about the importance of prayer and how it should not be neglected due to physical limitations or other reasons. He showed us that even if we are unable to stand or sit for long periods of time, we can still pray while lying down on our side as long as our hearts are devoted to Allah SWT. This hadith reminds us that no matter what situation we find ourselves in, there is always a way for us to connect with Allah SWT through prayer and worship Him with all sincerity and devotion.