Proverbs 14:35

NASB
The king's favor is toward a servant who acts wisely, But his anger is toward him who acts shamefully.