وَعَنْ أَبِي هُرَيْرَةَ ‏- رضى الله عنه ‏- قَالَ: قَالَ رَسُولُ اَللَّهِ ‏- صلى الله عليه وسلم ‏-{ لَا يَغْتَسِلُ أَحَدُكُمْ فِي اَلْمَاءِ اَلدَّائِمِ وَهُوَ جُنُبٌ } أَخْرَجَهُ مُسْلِمٌ 1‏ .‏‏1 ‏- صحيح.‏ رواه مسلم (283)‏.‏
Translation
Another version of Al-Bukhari has

“None of you should urinate in stagnant water that is not flowing, and then take bath in it”.A version of Muslim has the words “from it (i.e. the water)”.A version of Abu Da’ud has: “One should not take bath in it from sexual impurity”.