Did you ask something of someone and get an unfavourable reaction?
Maybe they said no to you, when you really hoped they'd say yes.
So you lost out?
Did you ask for the right reasons? Did you feel that it was the right thing to do?
So you've gained, not lost.
Not only have you stuck to the principle of doing the right thing, you have lived it and shown it.
You control your reaction, not the action of another.
Be thankful that what happened has happened, learn from it and act on it.