Ezra confessed shame over the people’s guilt, acknowledged past iniquities, and recognized God’s mercy in leaving a remnant and giving them a “little reviving.” He also says God extended steadfast love to them “in the sight of the kings of Persia.” See Ezra 9:6 and Ezra 9:9.
In Ezra 9:5–7 Ezra moves from silent grief into spoken confession. He rises at the time of the evening offering still marked by public humiliation, then kneels with open hands toward Yahweh. His words begin with personal shame before God and quickly widen into a shared “we” confession: the community’s wrongdoing has piled up beyond measure. These verses open Ezra’s longer prayer in chapter 9, which responds to news that some in the returned community have made marriages with surrounding peoples. Before this, Ezra publicly shows distress by actions of mourning, and others gather around him in shared alarm.
Ezra 9:5–7 shows confession beginning with visible shame and then moving into speech directed to God. Ezra times his prayer “at the evening offering,” rises from his earlier grief without undoing the public signs of it (torn clothing), and then kneels with open hands toward Yahweh (explicit: verse 5). The content of the confession is communal.
A careful answer keeps the immediate passage, the book's argument, and the whole-Bible storyline together, so the question is answered in context instead of as a detached idea.
Start with Ezra 9:6, then read the surrounding section so the answer stays connected to the passage's flow.
6and I said, my God, I am ashamed and blush to lift up my face to you, my God; for our iniquities are increased over our head, and our guiltiness is grown up to the heavens.