Mishkat al-Masabih 560
وَعَنْ عَدِيِّ بْنِ ثَابِتٍ عَنْ أَبِيهِ عَنْ جَدِّهِ - قَالَ يَحْيَى بْنُ مَعِينٍ: جَدُّ عَدِيٍّ اسْمُهُ دِينَارٌ - عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَنَّهُ قَالَ فِي الْمُسْتَحَاضَةِ: «تَدَعُ الصَّلَاةَ أَيَّامَ أَقْرَائِهَا الَّتِي كَانَتْ تَحِيضُ فِيهَا ثُمَّ تَغْتَسِلُ وَتَتَوَضَّأُ عِنْدَ كُلِّ صَلَاةٍ وَتَصُومُ وَتُصَلِّي» . رَوَاهُ التِّرْمِذِيّ وَأَبُو دَاوُد
From ʿAdi ibn Thabit, from his father, from his grandfather — Yahya ibn Maʿin said: ʿAdi's grandfather's name is Dinar — from the Prophet ﷺ, that he said about the woman with continuous bleeding: "She leaves the prayer on the days of her periods in which she used to menstruate, then she bathes, and performs wudu for every prayer, and fasts and prays." Reported by at-Tirmidhi and Abu Dawud.