In the right

On the right or legal side of an issue.

I was in the right when I was involved in the car accident at the intersection.