He has the A. Your never committed when it's obvious your beat. I am a big proponent of not getting a 1/3 of your stack in and folding often, but this is an obvious fold. You've shown strength throughout the hand, and he's done what he can to control the pot, until that river fell. You raised him twice and he still waited to get it in. Fold