I said, ‘Surely you will fear me; you will accept correction. Then your dwelling would not be cut off according to all that I have appointed against you.’ But all the more they were eager to make all their deeds corrupt.
Zephaniah 3:7 (ESV)
Heeding a word of correction and turning from sin is evidence of worship for the Lord.