2 Chronicles - Chapter 12
Rehoboam turned away from God's law, and received this message from God's prophet:
"Then the prophet Shemaiah came to Rehoboam and to the leaders of Judah who had assembled in Jerusalem for fear of Shishak, and he said to them, ‘This is what the Lord says: “You have abandoned me; therefore, I now abandon you to Shishak.”’
Jesus makes the same warning in Matthew 10:
‘Whoever acknowledges me before others, I will also acknowledge before my Father in heaven. But whoever disowns me before others, I will disown before my Father in heaven."