صحيح البخاري
From Sahih Bukhari (Hadith 239):
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
Reference: Bukhari 239