Sahih al-Bukhari, Book 4, Hadith 106 (In-Book) ⓘ
The same narrator said that the Prophet had said: "You should not pass urine in stagnant water which is not flowing then (you may need to) wash in it."
وَبِإِسْنَادِهِ قَالَ " لاَ يَبُولَنَّ أَحَدُكُمْ فِي الْمَاءِ الدَّائِمِ الَّذِي لاَ يَجْرِي، ثُمَّ يَغْتَسِلُ فِيهِ " .
also referenced under: Hadith 239 (DarusSalam) & Volume 1, Book 4, Hadith 240 (USC-MSA)