It is narrated from Kharijah bin Zayd (may Allah have mercy on him) that Sayyiduna Zayd bin Thabit (may Allah be pleased with him) suffered from continuous urine leakage. He kept treating it but found no relief; when it (the illness) overcame him, he left (the treatment). The narrator says: He would pray while (at times) (urine) was coming out of him.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحيض / 1669