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."
كَانَتْ بِي بَوَاسِيرُ فَسَأَلْتُ النَّبِيَّ ﷺ عَنِ الصَّلاَةِ فَقَالَ صَلِّ قَائِمًا فَإِنْ لَمْ تَسْتَطِعْ فَقَاعِدًا فَإِنْ لَمْ تَسْتَطِعْ فَعَلَى جَنْبٍ