The sin that had been committed was not simply the marrying of foreign wives. It was the the marrying women and fathering children who did not put their faith in the LORD. That was the crime which took three months to sort out in the courts. Each family had to be tested to see whether they had truly converted and were faithful to the LORD. Those who would not prove allegiance to the God of Israel could not be allowed to settle in restored Jerusalem. Similarly, a judgment will take place before the new heavens and new earth will be occupied. Those whose names are not found in the book of life will not be allowed to enter the new Jerusalem, and they will not be allowed to partake of the tree of life and live forever.
LORD, purge us of our hypocrisy and capriciousness. Make of us genuine people, fit for eternity.
Ezra 10