Throughout Scripture, seems to me that it is the Holy Spirit who uncovers sin. The devil merely accuses. Moreover, our own experience agrees with this. God’s uncovering of sin prompts us to repent and to seek our Redeemer.
It is useful to remember Rehoboam
It is also useful to remember the fate of the ten tribes.