First of all there is a section for hand reviews, so please post there next time. Its also better, if you can get hand on the actual hand history and then use the hand converter here on CC, because in that way no information about stack sizes and bet sizes etc. are missed. But with that being said lets look at the hand with the information, you gave.
Preflop
If you opened from SB, and 4 players saw the flop, then there must have been limpers in front of you. In that case I lean towards just completing with A8o, because if you raise, it needs to be very large, and probably you still get at least one caller, in which case you are out of position in a bloated pot with A8o. Right off the bat thats not something, I am looking forward to, so I would prefer to keep the pot small and then raise some stronger aces like AJ or AT, or raise with A8, when I have position on the limpers. Its not a terrible raise with A8o, but its definitely on the aggressive side.
Flop
Its unclear to me, what happened on the flop, but you say, he raised, which per definition must mean, that you bet, because otherwise he can not raise. And I would clearly bet here. I might also put in a 3-bet, especially if it was a 2-tone board, so that someone could have a flushdraw. But depending on stack sizes bet-calling can also be a fine option with the intention of getting it in later.
Turn
Great turn card for you, because now you even beat QQ and 88, AA is no longer possible, and AQ is only half as likely being reduced from 6 to just 3 combos. If seem like, you check-raised now, and thats totally fine.
River
The river card obviously does not matter, and I am starting to think, that you mean "bet", when you say raise. In that case you checked the river after taking the initiative on the turn, and I dont like that play. You need to get stacks in, when you have the second nuts, and only 3 combos beat you. If you went to showdown without being all-in, that a massive mistake costing you tons of value in the long run.
Results
So he had the only hand, that beat you. Thats called a cooler, and while coolers are annoying, they are also part of the game, and they tend to level out over time. So in reality they do not matter at all. Sooner or later he, or someone else, will have second boat, when you have top boat, and then they will also lose all their money or chips to you. So while a hand like this is painfull, there is very little to learn from it, especially when you did not share the things, that actually matter, which are the exact bet sizes and order of action.