The Messenger of Allah (ﷺ) forbade to urinate in stagnant water.

Sahih Muslim Book 2, Hadith 121