Well if you count that the bike and tires have done it, then my road e-bike has over 19,000 miles on it now. It started back in 2004, so it took a little more than 3+ years to get this many. But that was through 3 hub motors. The first was a WE Brushless that got over 17,000 miles before I toasted it and my controller in an experiment for more power. I used the WE Brushless from my mountain bike as a replacement for another 1,000 miles, and then recently switched to a Crystalyte 406 hub motor which has I've already put over 1,000 miles on so far.
So for the record, the WE lasted for about 17,000 miles and my replacement 406 motor is young by comparison with only 1,000 (actually 1,043 when I checked the odometer
So the bike is outlasting the hub motors as long as I don't blow them up with too much power
But, this has all been on the same old NiMH pack which is still going strong. The batteries have been used for so long that the writing on top has been worn off by the bumps of riding and the top of the bag scraping against it I guess? The sides of the plastic have wear groves from where they sit side by side and have some wear when they bump from bad places in the road.
Given some poor reviews lately of some of the batteryspace packs, I'm lucky mine are still going strong or I got a batch of NiMH that were of good quality at the time.