Messenger of Allah, (the time) of prayer overtakes me as I am in a state of junub; should I observe fast (in this state)? Upon this the Messenger of Allah ﷺ said: (At times the time) of prayer overtakes me while I am in a state of junub, and I observe fast (in that very state), whereupon he said: Messenger of Allah, you are not like us Allah has pardoned all your sins, the previous ones and the later ones. Upon this he (the Holy Prophet) said: By Allah, I hope I am the most God-fearirg of you, and possess the best knowledge among you of those (things) against which I should guard. (Using translation from Muslim 1110)
أَنَّ رَجُلًا جَاءَ إِلَى النَّبِيِّ ﷺ وَهِيَ تَسْمَعُ مِنْ وَرَاءِ الْبَابِ فَقَالَ يَا رَسُولَ اللهِ تُدْرِكُنِي الصَّلَاةُ وَأَنَا جُنُبٌ أَفَأَصُومُ؟ فَقَالَ رَسُولُ اللهِ ﷺ «وَأنا تُدْرِكُنِي الصَّلَاةُ وَأنا جُنُبٌ فَأَصُومُ» قَالَ لَسْتَ مِثْلَنَا يَا رَسُولَ اللهِ قَدْ غَفَرَ اللهُ لَكَ مَا تَقَدَّمَ مِنْ ذَنْبِكَ وَمَا تَأَخَّرَ قَالَ «وَاللهِ إِنِّي لَأَرْجُو أَنْ أَكُونَ أَخْشَاكُمْ لِلَّهِ وَأَعْلَمَكُمْ بِمَا أَتَّقِي»