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.
tabarani:9567ʿUmar b. Ḥafṣ al-Sadūsī > ʿĀṣim b. ʿAlī > al-Masʿūdī > Jāmiʿ b. Shaddād > al-Aswad b. Hilāl > Atá ʿAbdullāh b. Masʿūd a man

[Machine] O Abu Abdurrahman, indeed I was in a state of major impurity (janabah) and did not perform the ritual purification (ghusl) until morning came. So Abdullah said, "You were in a state of major impurity, so the prayer was not permissible for you. But since you have performed the ritual purification, the prayer is permissible for you and fasting is also permissible for you." And that was during Ramadan.  

الطبراني:٩٥٦٧حَدَّثَنَا عُمَرُ بْنُ حَفْصٍ السَّدُوسِيُّ ثنا عَاصِمُ بْنُ عَلِيٍّ ثنا الْمَسْعُودِيُّ ثنا جَامِعُ بْنُ شَدَّادٍ عَنِ الْأَسْوَدِ بْنِ هِلَالٍ قَالَ أَتَى عَبْدَ اللهِ بْنَ مَسْعُودٍ رَجُلٌ فَقَالَ

يَا أَبَا عَبْدِ الرَّحْمَنِ إِنِّي كُنْتُ جُنُبًا فَلَمِ اغْتَسَلْ حَتَّى أَصْبَحْتُ فَقَالَ عَبْدُ اللهِ «كُنْتَ جُنُبًا لَا تَحِلُّ لَكَ الصَّلَاةُ فَاغْتَسَلْتَ فَحَلَّتْ لَكَ الصَّلَاةُ وَحَلَّ لَكَ الصِّيَامُ» وَذَلِكَ فِي رَمَضَانَ  


See similar narrations below:

Collected by Ṭabarānī
tabarani:9565Isḥāq b. Ibrāhīm al-Dabarī > ʿAbd al-Razzāq > al-Thawrī > Jāmiʿ b. Shaddād > ʿAbdullāh b. Mirdās > Jāʾanī a man from al-Ḥay

[Machine] You were in a state of ritual impurity, so it was not permissible for you to pray. After you performed ablution (ritual washing), prayer became permissible for you, and fasting also became valid so you may observe it.  

الطبراني:٩٥٦٥حَدَّثَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ الدَّبَرِيُّ عَنْ عَبْدِ الرَّزَّاقِ عَنِ الثَّوْرِيِّ عَنْ جَامِعِ بْنِ شَدَّادٍ ثنا عَبْدُ اللهِ بْنُ مِرْدَاسٍ قَالَ جَاءَنِي رَجُلٌ مِنَ الْحَيِّ فَقَالَ إِنِّي مَرَرْتُ بِامْرَأَتِي فِي الْقَمَرِ فَأَعْجَبَتْنِي فَجَامَعْتُهَا فِي شَهْرِ رَمَضَانَ فَنِمْتُ حَتَّى أَصْبَحْتُ فَقُلْتُ عَلَيْكَ بِعَبْدِ اللهِ بْنِ مَسْعُودٍ أَوْ بِأَبِي حَكِيمٍ الْمُزَنِيِّ فَإِذَا عَبْدُ اللهِ بْنُ مَسْعُودٍ فَسَأَلْتُهُ فَقُلْتُ إِنِّي كُنْتُ جُنُبًا فَقَالَ

«كُنْتَ جُنُبًا لَا يَحِلُّ لَكَ الصَّلَاةُ فَاغْتَسَلْتَ فَحَلَّتْ لَكَ الصَّلَاةُ وَحَلَّ لَكَ الصِّيَامُ فَصُمْ»