If 39 and in the best shape I've ever been in, literally, including when I was a teenager. I've been riding for two years having started out in the worst physical condition of my life.
I notice that whenever I go out for century rides most of the riders are older than me, some significantly older, so I have confidence that I'll be able to keep riding for quite a while as long as I watch my nutrition.