Apologize when you’re wrong & keep quiet when you’re right. A humble individual earns more respect than a know it all.
The Prophet (pbuh) said, “Whoever humbles himself or herself for the sake of Allah will be elevated by Allah.” (Sahih Ibn Hibban)