Philippians 2:3 ESV
Do nothing from selfish ambition or conceit, but in humility count others more significant than yourselves.
As Christians, we must always check our heart. Are we doing for our selfish gain? Are we doing to gain recognition? We must be absolutely honest with ourselves, because we cannot deceive God.
The key to avoid such pitfall is to stay humble, counting others more significant than ourselves. We ought not to seek things for ourselves, but think of others, care for others, build up others, serve the greater good. God will bless us and take care of us.