Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:3659Abū al-Ḥasan Muḥammad b. al-Ḥusayn b. Muḥammad b. al-Faḍl al-Qaṭṭān> Ismāʿīl b. Muḥammad al-Ṣaffār > ʿAbbās b. Muḥammad > Abū Isḥāq al-Ṭālqānī > Ibn al-Mubārak > Ibrāhīm b. Ṭahmān > Abū Isḥāq > Ibn al-Mubārak

[Machine] I had hemorrhoids, so I asked the Messenger of Allah ﷺ , and he said, "Pray standing. If you cannot, then sitting. If you cannot, then lying on your side." Abu Al-Hasan informed us, Isma'il reported to us from Abbas ibn Muhammad, who reported from Ali ibn Al-Hasan ibn Shaqiq, who reported from Ibrahim ibn Tahman, who reported from Husayn al-Mualim, who reported from Ibn Buraydah, who reported from Imran ibn Husayn, who reported from the Prophet ﷺ something similar to it.  

البيهقي:٣٦٥٩أَخْبَرَنَا أَبُو الْحَسَنِ مُحَمَّدُ بْنُ الْحُسَيْنِ بْنِ مُحَمَّدِ بْنِ الْفَضْلِ الْقَطَّانُ بِبَغْدَادَ أنبأ إِسْمَاعِيلُ بْنُ مُحَمَّدٍ الصَّفَّارُ ثنا عَبَّاسُ بْنُ مُحَمَّدٍ ثنا أَبُو إِسْحَاقَ الطَّالْقَانِيُّ ثنا ابْنُ الْمُبَارَكِ عَنْ إِبْرَاهِيمَ بْنِ طَهْمَانَ قَالَ أَبُو إِسْحَاقَ وَسَمِعْتُ ابْنَ الْمُبَارَكِ يَقُولُ كَانَ إِبْرَاهِيمُ بْنُ طَهْمَانَ ثَبْتًا فِي الْحَدِيثِ عَنْ حُسَيْنٍ الْمُكْتِبِ عَنْ عَبْدِ اللهِ بْنِ بُرَيْدَةَ عَنْ عِمْرَانَ بْنِ حُصَيْنٍ قَالَ

كَانَتْ بِي بَوَاسِيرُ فَسَأَلْتُ رَسُولَ اللهِ ﷺ فَقَالَ صَلِّ قَائِمًا فَإِنْ لَمْ تَسْتَطِعْ فَقَاعِدًا فَإِنْ لَمْ تَسْتَطِعْ فَعَلَى جَنْبٍ 3660 وَأَخْبَرَنَا أَبُو الْحَسَنِ أنبأ إِسْمَاعِيلُ ثنا عَبَّاسُ بْنُ مُحَمَّدٍ ثنا عَلِيُّ بْنُ الْحَسَنِ بْنِ شَقِيقٍ ثنا إِبْرَاهِيمُ بْنُ طَهْمَانَ عَنْ حُسَيْنٍ الْمُعَلِّمِ عَنِ ابْنِ بُرَيْدَةَ عَنْ عِمْرَانَ بْنِ حُصَيْنٍ عَنِ النَّبِيِّ ﷺ نَحْوَهُ  

رَوَاهُ الْبُخَارِيُّ فِي الصَّحِيحِ عَنْ عَبْدَانَ عَنِ ابْنِ الْمُبَارَكِ