Carrot and stick. Carrot on a stick.

This idiom or expression has to do with:

Tempting or luring someone.

She used the old carrot and stick trick and promised her son some ice cream before she could get him to eat the spinach.

History: 
This term originates with stubborn mules: A carrot used to be tied to a stick and put in front of stubborn mules. Since they are not the smartest animals and like to eat carrots, the carrot helped make them move forward.