Bulugh al-Maram 146
وَعَنِ ابْنِ عَبَّاسٍ رَضِيَ اللَّهُ عَنْهُمَا, عَنِ النَّبِيِّ - صلى الله عليه وسلم - فِي الَّذِي يَأْتِي امْرَأَتَهُ وَهِيَ حَائِضٌ - قَالَ: «يَتَصَدَّقُ بِدِينَارٍ, أَوْ نِصْفِ دِينَارٍ». رَوَاهُ الْخَمْسَةُ, وَصَحَّحَهُ الْحَاكِمُ وَابْنُ الْقَطَّانِ, وَرَجَّحَ غَيْرَهُمَا وَقْفَهُ.
From Ibn ʿAbbas, may Allah be pleased with them both, from the Prophet ﷺ, regarding one who has intercourse with his wife while she is menstruating; he said: "He should give a dinar, or half a dinar, in charity." Narrated by the Five, and al-Hakim and Ibn al-Qattan graded it sahih, while others preferred that it is Ibn ʿAbbas's own statement.