Verse 13 comes before 14.
It is AFTER verse 13 that The Lord gives His People the space of repentance, because obviously they did not heed and repent before God has to do verse 13.
You are so right! Thanks!
2 Chronicles 7:13-14
13 When I shut up the heavens so that there is no rain, or command locusts to devour the land or send a plague among my people, 14 if my people, who are called by my name, will humble themselves and pray and seek my face and turn from their wicked ways, then I will hear from heaven, and I will forgive their sin and will heal their land.