[Machine] Zaid experienced such an intense urge to urinate until he could no longer control it. He would try to hold it in as much as he could, but when the urge became overwhelming, he would perform ablution (wudu) and pray. It has been narrated that there is a hadith with a weak chain of narrators that mentions a similar situation.
كَبِرَ زَيْدٌ حَتَّى سَلَسَ مِنْهُ الْبَوْلُ فَكَانَ يُدَارِيهِ مَا اسْتَطَاعَ فَإِذَا غَلَبَهُ تَوَضَّأَ وَصَلَّى وَقَدْ رُوِيَ فِي مَعْنَاهُ حَدِيثٌ بِإِسْنَادٍ فِيهِ ضَعْفٌ