The Messenger of Allah ﷺ forbade urinating in stagnant water.
حدثنا محمد بن رمح أنبأنا الليث بن سعد عن أبي الزبير
عن رسول الله ﷺ أنه نهى عن أن يبال في الماء الراكد
Muslim narrated it in the Book of Purification, chapter on the prohibition of urinating in stagnant water, hadith no. 281, from Muhammad bin Ramh and others, with the same wording.