Passage
O Lord, righteousness belongeth unto thee, but unto us confusion of face, as at this day; to the men of Judah, and to the inhabitants of Jerusalem, and unto all Israel, that are near, and that are far off, through all the countries whither thou hast driven them, because of their trespass that they have trespassed against thee.
Nearby Context
Daniel 9:5 we have sinned, and have dealt perversely, and have done wickedly, and have rebelled, even turning aside from thy precepts and from thine ordinances;
Daniel 9:6 neither have we hearkened unto thy servants the prophets, that spake in thy name to our kings, our princes, and our fathers, and to all the people of the land.
Daniel 9:7 O Lord, righteousness belongeth unto thee, but unto us confusion of face, as at this day; to the men of Judah, and to the inhabitants of Jerusalem, and unto all Israel, that are near, and that are far off, through all the countries whither thou hast driven them, because of their trespass that they have trespassed against thee.
Daniel 9:8 O Lord, to us belongeth confusion of face, to our kings, to our princes, and to our fathers, because we have sinned against thee.
Daniel 9:9 To the Lord our God belong mercies and forgiveness; for we have rebelled against him;
Study Lenses
The verse centers on "lord", "righteousness", "belongeth", "thee", "confusion", "face", "judah", and "inhabitants". It is saying that the verse draws attention to "lord" and "righteousness", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 6's "neither have we hearkened unto thy servants..." into verse 8's "O Lord to us belongeth confusion of...", so "lord" and "righteousness" belong inside that flow. In Daniel context, the local focus is covenant, worship, and faithfulness.
A plain takeaway is to answer the verse's own emphasis on "lord" and "righteousness" with trust shaped by these words, not by a vague optimism outside the passage.