In a Christian context, “denying yourself” means that, through the power of the Holy Spirit,  you do not give in to the sinful lusts and desires which come from within yourself and crave gratification. It is one of the conditions for discipleship (following Jesus). (Matthew 16:24)