2 Chronicles 6:24 NIV

24 “When your people Israel have been defeated by an enemy because they have sinned against you and when they turn back and give praise to your name, praying and making supplication before you in this temple,

References for 2 Chronicles 6:24