It is not permissible for a man to urinate in stagnant water. However, there is no harm in urinating in flowing water, though it is advised to be cautious of potential harm from the devil. It is also narrated that urinating in stagnant water causes forgetfulness.
Commentary #18