Don’t seek recognition or credit. Do what is right because that’s what you do. That’s what you’re supposed to do. You don’t need to brag to others about doing what you’re supposed to do. The only reason why you want credit for doing something is to build up your ego. Once you have an inflated ego, you are more likely to look down on others and to continue to seek recognition from others to keep your status elevated. Try to ignore this, if at all possible.