The Messenger of Allah ﷺ said, "None of you should urinate in still water and then bathe in it."
أخبرنا محمد بن عبد الله بن يزيد المقري عن سفيان عن أبي الزناد عن موسى بن أبي عثمان عن أبيه
أن رسول الله ﷺ قال لا يبولن أحدكم في الماء الراكد ثم يغتسل منه
[Sahih] Ahmad, 2/394, narrated it from Sufyan bin Uyayna, through him, and he explicitly stated the hearing in Humaydi, no. 975, and it is also in al-Kubra, no. 225. The hadith has corroborating narrations in Bukhari, no. 239, and Muslim, no. 282, and others besides them.