I have a question about a play I made today in online poker. I didn't save the HH, but its not too important to the question at all.

Delt to me: AQo
I raise to 4xBB.

Everyone but the BB folds and the flop comes AA8. He bets and I call. Turn A. He checks, I check behind him. River is an 8. He checks, and I pause for 3 seconds, then ask the chat, "Hey, if we both have just whats out there, do we just split the money?", to which everyone pokes fun and says yes. At this point, after waiting for a "yes", I push all in, and he immediatly calls. Of corse I won the pot, about 35 bucks, but I suppose my question is, how morally wrong is this, and would any of you done it?