Can i stop giving food to my child if he refuses to pray?

In such issues, it is not wise to punish a child to teach him rather it is better for you to encourage him to pray for example I'll do such and such for you if you pray.