Here is the link to Article XVII:

https://bookofconcord.org/augsburg-confession/of-christs-return-to-judgment/

Paragraph 1 deals with what we affirm as Lutherans. We affirm that Christ will return and will judge the world. All of the dead will be raised and judged according to their deeds. As Jesus says in John 5:29 “those who have done what is good will rise to live, and those who have done what is evil will rise to be condemned” (NIV). (See also Matthew 25).

There is no contradiction here with the doctrine of justification by grace alone through faith alone. Simply put, those who had saving faith in Christ will be counted as righteous, and God will reward all their good deeds. (It’s also worth noting that saving faith leads people to doing good deeds, as James teaches most clearly). By contrast, those who don’t have faith cannot be counted as good in the sight of God. Although they may have done works of civil righteousness, “everything that does not come from faith is sin” (Romans 14:23 NIV).

Paragraph 2 condemns the false teaching known as annihilationism. It is important to warn unbelievers that the torments of hell won’t come to an end (see Mark 9:48; 2 Thessalonians 1:9). “Whoever believes and is baptized will be saved, but whoever does not believe will be condemned” (Mark 16:16 NIV).

Finally, in paragraph 3, the confessors condemn the view that when Jesus returns, he will establish a temporal kingdom, in which the godly will rule alongside him for a time before the final resurrection. Most Lutherans understand this statement to be a condemnation of millennialism (otherwise known as “chiliasm”). Others hold that this article condemns only the post-millennial view. The Lutheran Brethren holds a non-dogmatic stance on the millennium.

(See our church’s position paper on Last Things: https://cdn.subsplash.com/documents/T9C94H/_source/5c186efc-8c95-4f59-9b5b-1c331c8444ac/document.pdf)