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.
ahmad:3184ʿAbd al-Raḥman > Mālik > al-Zuhrī > ʿUbaydullāh b. ʿAbdullāh Iʿan Ibn ʿAbbās

[Machine] I came with the Messenger of Allah ﷺ while he was praying in Mina, and I was riding a donkey. So I left it standing in front of the row and entered into prayer, and I had almost reached ejaculation but it did not affect my prayer.  

أحمد:٣١٨٤حَدَّثَنَا عَبْدُ الرَّحْمَنِ حَدَّثَنَا مَالِكٌ عَنِ الزُّهْرِيِّ عَنْ عُبَيْدِ اللهِ بْنِ عَبْدِ اللهِعَنِ ابْنِ عَبَّاسٍ قَالَ

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