"When they sin against you—for there is no one who does not sin—and you become angry with them and give them over to their enemies, who take them captive to their own lands, far away or near; and if they have a change of heart in the land where they are held captive, and repent and plead with you in the land of their captors and say, ‘We have sinned, we have done wrong, we have acted wickedly’; and if they turn back to you with all their heart and soul in the land of their enemies who took them captive, and pray to you toward the land you gave their ancestors, toward the city you have chosen and the temple I have built for your Name; then from heaven, your dwelling place, hear their prayer and their plea, and uphold their cause. And forgive your people, who have sinned against you; forgive all the offenses they have committed against you, and cause their captors to show them mercy; for they are your people and your inheritance, whom you brought out of Egypt, out of that iron-smelting furnace."
1 Kings 8:46-51
Here is a good example of the full context of repentance.
This is as true today as it was back then.