Bulugh al-Maram 6
وَعَنْ أَبِي هُرَيْرَةَ - رضي الله عنه - قَالَ: قَالَ رَسُولُ اللَّهِ - صلى الله عليه وسلم: «لَا يَغْتَسِلُ أَحَدُكُمْ فِي الْمَاءِ الدَّائِمِ وَهُوَ جُنُبٌ». أَخْرَجَهُ مُسْلِمٌ. وَلِلْبُخَارِيِّ: «لَا يَبُولَنَّ أَحَدُكُمْ فِي الْمَاءِ الدَّائِمِ الَّذِي لَا يَجْرِي, ثُمَّ يَغْتَسِلُ فِيهِ». وَلِمُسْلِمٍ: «مِنْهُ». وَلِأَبِي دَاوُدَ: «وَلَا يَغْتَسِلُ فِيهِ مِنَ الْجَنَابَةِ».
From Abu Hurayrah, may Allah be pleased with him, who said: The Messenger of Allah ﷺ said: "None of you should bathe in standing water while he is in a state of janabah." Reported by Muslim. And al-Bukhari has: "None of you should urinate in standing water that does not flow, and then bathe in it." And Muslim has: "from it." And Abu Dawud has: "And he should not bathe in it from janabah."