correctly, or for a good reason [≠ wrongly]:
I was, as you rightly said, the smallest boy in the class.
As you so rightly pointed out, things are getting worse.
They have been treated badly, and they are rightly upset.
quite rightly British English
There's a lot of talk, quite rightly, about the dangers of smoking.
This photo was taken in Paris, if I remember rightly.
used to emphasize that someone else thinks that something they did was right, but you think it was wrong:
The prime minister was widely judged, rightly or wrongly, to be an honest man.
used to say that a decision or action you have just described is fair and morally right, in your opinion:
A lot of people round here were furious, and rightly so.
used to say that you are not sure whether something is correct or not