أَخْبَرَنَا فَرْوَةُ بْنُ أَبِي الْمَغْرَاءِ، قَالَ: سَمِعْتُ شَرِيكًا وَسَأَلَهُ رَجُلٌ، فَقَالَ: الْمَرْأَةُ يَنْقَطِعُ عَنْهَا الدَّمُ: أَيَأْتِيهَا زَوْجُهَا قَبْلَ أَنْ تَغْتَسِلَ ؟، فَقَالَ: قَالَ عَبْدُ الْمَلِكِ: عَنْ عَطَاءٍ، أَنَّهُ "رَخَّصَ فِي ذَلِكَ لِلشَّبِقِ"، قَالَ أَبُو مُحَمَّد: أَخَافُ أَنْ يَكُونَ أَخَطَأً، وأَخَافُ أَنْ يَكُونَ مِنْ حَدِيثِ لَيْثٍ، لَا أَعْرِفُهُ مِنْ حَدِيثِ عَبْدِ الْمَلِكِ، قَالَ أَبُو مُحَمَّد: الشَّبِقُ الَّذِي يَشْتَهِي.
Furwah bin Abi Al-Mughra reported, I heard Shareek say, a man asked him: If a woman's blood stops, can her husband have intercourse with her before she performs ghusl (ritual bath)? Shareek gave the answer from Abdul Malik on the authority of Ata’ (may Allah have mercy on him) that he permitted intercourse before ghusl in the case of intense desire. Abu Muhammad Imam Darimi (may Allah have mercy on him) said: I fear that he made a mistake, and that this is the narration of Layth bin Abi Sulaim instead of Abdul Malik, because I do not know of any such statement from Abdul Malik. Abu Muhammad (may Allah have mercy on him) said: «الشبق» refers to the man who has intense desire.
Brief Explanation
(Commentary on Ahadith 1112 to 1125)
From all these narrations, it is established that after menstruation (hayd) has ceased, it is not permissible to have intercourse before performing the ritual bath (ghusl). However, if sexual desire becomes overwhelmingly strong, then after cleaning and purifying herself, the husband may have intercourse, but it is better that intercourse takes place after the ritual bath (ghusl).
This is because avoiding impurity and germs is among the principles of hygiene, which our religion has taught us.
And Allah knows best.