If my people, which are called by my name, shall humble themselves, and pray, and seek my face, and turn from their wicked ways; then will I hear from heaven, and will forgive their sin, and will heal their land.
2 Chronicles 7:14 KJV
Notice the word "If"
Now look at what else he said, "my people"
Now look at the condition; humility, prayer, seeking God's face, and turning away from sin
Now look at God's promise; "then I will"