From Sahih Muslim (Hadith 657):
Hammam b. Munabbih said:Of the ahadith narrated to us by Abfi Huraira from Muhammad the Messenger of Allah (ﷺ) one is this: The Messenger or Allah (ﷺ) said: You should not urinate in standing water, that is not flowing, then wash in it
Reference: Muslim 657