Therefore speak: Thus says the Lord God: I will gather you from the peoples, and I will assemble you from the lands in which you have been scattered, and I will give you the soil of Israel. And they shall enter there, and shall take away all the offenses, and all the abominations from it; and I will give them one heart (or another), and a new spirit I will bestow, in their inward parts; and I will take away the stony heart from their flesh, and I will give them a heart of flesh, that they may walk in my precepts, and keep my judgments and do them, and be to me for a people and I be to them for... God. But those whose heart walks after their stumbling blocks and their abominations, their way I will set upon their own head, says the Lord God. The divine word speaks to those who were captives in the land of Babylon, and to the brothers of Ezekiel the prophet and to his kinsmen, to whom the inhabitants of Jerusalem said: You have gone far away from the Lord; to us the land has been given for a possession; and it speaks these things which follow: 'I will gather you from the peoples, and I will restore to you the land of Israel; and when you have entered, you will take away all the idols on account of which you had offended God, and I will give you one heart, of the fear and the service of God, so that you may by no means serve diverse idols, or another than the one you had before; and I will bestow a new spirit in your inward parts, according to what is written: Create a clean heart in me, and renew a holy spirit in my inward parts; and I will take away from you the stony heart — that is, a hard heart, according to what Stephen, the first martyr in Christ, says: Hard of neck and uncircumcised in heart —; and the heart of Pharaoh is hardened, so that he may not let the people of Israel go; and I will give you', he says, 'a heart of flesh, soft and tender, and one which can receive the commandments of God, so that they may be written on the fleshly tablets of the heart' — for this reason a soft heart is given and the hard heart is taken away: so that they may walk in his precepts and keep his judgments and be in the people of God, and the Lord, who before had been an adversary, may be to them for God —; 'but those who have by no means corrected their former sins by repentance, but have walked after their abominations, I will repay', he says, 'with what they deserve: let their ways be set upon their heads'. Most think that these things happened under Zerubbabel the son of Shealtiel, and under Joshua the son of Jehozadak, the great priest, and under Ezra and Nehemiah, to the tribe of Judah and to those who returned with them, and that the inhabitants of Jerusalem who were captured under Zedekiah king of Judah, or who fled with Jeremiah into Egypt, were dispersed into all lands, so that they by no means returned to the city of Jerusalem. But the full conversion, of those who were captives and of the remnant of Israel, is understood in Christ, when the remnant was saved, and in one day three thousand believed, and again five thousand, and others, of whom James speaks to the apostle Paul: You see, brother, so many thousands of believing Jews. These are all zealous for the law. But also daily the proud inhabitants of the city of Jerusalem, whose heart walks after their stumbling blocks and their abominations, earn the displeasure of God, and those who were outside, the stony heart having been taken away and a most soft heart received, return through repentance to the Church, and walk in the precepts of the Lord, and keep his judgments, and become the people of the Lord, and the Lord, whom they had previously offended, becomes God to them.
Source: Commentary on Ezekiel