The Prophet ﷺ said, "No one should urinate in stagnant water and then bathe from it."
حدثنا أبو أحمد حدثنا سفيان عن أبي الزناد عن موسى بن عثمان عن أبيه
عن النبي ﷺ قال لا يبال في الماء الذي لا يجري ثم يغتسل منه
Its isnad is sahih. It occurred previously at 8725. Abu Dawud narrated something similar, number 70, as did Nasai, 1/125, and Ibn Majah, 344, and Abdul-Razzaq, 978, with the wording, "None of you should urinate..."