Read 1 Chronicles 16 today.

2 Chronicles 16:7-10 NLT[7] At that time Hanani the seer came to King Asa and told him, “Because you have put your trust in the king of Aram instead of in the LORD your God, you missed your chance to destroy the army of the king of Aram. [8] Don’t you remember what happened to the Ethiopians and Libyans and their vast army, with all of their chariots and charioteers? At that time you relied on the LORD, and he handed them over to you. [9] The eyes of the LORD search the whole earth in order to strengthen those whose hearts are fully committed to him. What a fool you have been! From now on you will be at war.”
[10] Asa became so angry with Hanani for saying this that he threw him into prison and put him in stocks. At that time Asa also began to oppress some of his people.
King Asa had been a good king until he saw the fortifications being made by the northern kingdom. He became fearful, and rather than trusting God he sought an alliance with another nation. When he was confronted with his lack of faith, he had a choice. He could repent of his sin or continue down the path he had chosen. He became angry with the messenger, Hanani, and threw him in prison.
We often respond in the same way when confronted with our sinfulness. We become angry with the messenger rather than dealing with the truth within the message. Think about the times you have become angry when someone has confronted you. To be sure, sometimes the confrontation could have been handled better. But, was there any truth in the message? How will you deal with that truth?