Highly recommend Daniel Pink’s “A Whole New Mind” on this topic
Correction, the Pink title I was referring to was "Drive: The Surprising Truth About What Motivates Us"
Pink does a great job unpacking research that demonstrates how this type of 'affect my pay' dynamic backfires for engineering.