Four days! At that point I was definitely being very cautious about exercise and taking an afternoon nap.
But as someone who hates being tied down, I did do a few forays to the nearest shops after a few more days - but was dependent on them having toilets so I could empty my catheter bag. Then after the catheter was out it was a different problem, my initial leaking was enhanced by movement and I had to always plan any gentle local walks around opportunities to change pads.
It was around 6-8 weeks I started doing "real" exercise, though again limited by pad changing. Bit by bit things got better, I was determined to do things. I worked out ways to manage, going on a family beach activity holiday and then a cycling holiday, involving some dinghy sailing and quite a lot of (gentle) cycling despite the pad issue. (Occasionally it needed an diversion behind a bush).
The big breakthrough was getting down to two pads a day, around six months after the operation. It meant I was safe doing anything with a spare pad in the back pocket. Six years later I still carry that spare pad, though it is rare for me to need it these days.
Good luck, it is a process you need to work through.