Asa had an up-and-down relationship with God. He began in 2 Chronicles 14:
1And Abijah rested with his ancestors and was buried in the City of David. Asa his son succeeded him as king, and in his days the country was at peace for ten years.
2 Asa did what was good and right in the eyes of the Lord his God. 3He removed the foreign altars and the high places, smashed the sacred stones and cut down the Asherah poles.
He had a nice beginning, depending on the Lord.
11 Then Asa called to the Lord his God and said, “Lord, there is no one like you to help the powerless against the mighty. Help us, Lord our God, for we rely on you, and in your name we have come against this vast army. Lord, you are our God; do not let mere mortals prevail against you.”
12 The Lord struck down the Cushites before Asa and Judah. The Cushites fled,
The Lord helped him to fight his enemies.
Then he received a warning, 2 Chronicles 15:
1 The Spirit of God came on Azariah son of Oded. 2He went out to meet Asa and said to him, “Listen to me, Asa and all Judah and Benjamin. The Lord is with you when you are with him. If you seek him, he will be found by you, but if you forsake him, he will forsake you.
Asa heeded the Oded's warning, 2 Chronicles 15:
8 When Asa heard these words and the prophecy of Azariah son of Oded the prophet, he took courage. He removed the detestable idols from the whole land of Judah and Benjamin and from the towns he had captured in the hills of Ephraim. He repaired the altar of the Lord that was in front of the portico of the Lord’s temple.
God rewarded him with peace.
15 All Judah rejoiced about the oath because they had sworn it wholeheartedly. They sought God eagerly, and he was found by them. So the Lord gave them rest on every side.
But then the event took a downturn in 2 Chronicles 16:
1 In the thirty-sixth year of Asa’s reign Baasha king of Israel went up against Judah and fortified Ramah to prevent anyone from leaving or entering the territory of Asa king of Judah.
This time, he didn't ask God for help but solicited foreign help, 2 Chronicles 16:
7 At that time Hanani the seer came to Asa king of Judah and said to him: “Because you relied on the king of Aram and not on the Lord your God, the army of the king of Aram has escaped from your hand. 8Were not the Cushites and Libyans a mighty army with great numbers of chariots and horsemen?
Asa didn't learn the lesson from the last war.
Yet when you relied on the Lord, he delivered them into your hand. 9For the eyes of the Lord range throughout the earth to strengthen those whose hearts are fully committed to him. You have done a foolish thing, and from now on you will be at war.”
Asa obeyed Oded. Now he didn't obey Hanani.
10 Asa was angry with the seer because of this; he was so enraged that he put him in prison. At the same time Asa brutally oppressed some of the people.
He was angry with God and took it out on the people.
12In the thirty-ninth year of his reign Asa was afflicted with a disease in his feet. Though his disease was severe, even in his illness he did not seek help from the Lord, but only from the physicians.
He refused to repent and turn to God.
13 Then in the forty-first year of his reign Asa died and rested with his ancestors.
How can we harmonize 2 Chronicles 14:1-4 and 15:8?
Asa had an up-and-down relationship with God.