The Messenger of Allah ﷺ said, "None of you should urinate in stagnant water and then perform ablution from it."Awf said that Khilas reported from Abu Hurairah from the Prophet ﷺ something similar.
أخبرنا إسحق بن إبراهيم قال أنبأنا عيسى بن يونس قال حدثنا عوف عن محمد
عن رسول الله ﷺ قال لا يبولن أحدكم في الماء الدائم ثم يتوضأ منه قال عوف وقال خلاس عن أبي هريرة عن النبي ﷺ مثله
Its isnad is sahih. Muslim narrated it in the Book of Purification, the chapter on the prohibition of urinating in stagnant water, hadith (282), and Ahmad narrated it (2/259, 492, 529) from the hadith of Awf Arabi, from the hadith of Muhammad bin Sirin, with the same wording. It is also found in al-Kubra, hadith (55, 56).