Daniel 9:5
we have sinned, committed iniquity, acted wickedly and rebelled, even turning aside from Your commandments and ordinances.
Daniel's confession: acted wickedly, rebelled, turned from commands.
Joshua 7:1maal
But the sons of Israel acted unfaithfully in regard to the things under the ban, for Achan, the son of Carmi, the son of Zabdi, the son of Zerah, from the tribe of Judah, took some of the things under the ban, therefore the anger of the Lord burned against the sons of Israel.
Achan's theft shows acting unfaithfully toward God.
2 Samuel 24:10asah
Now David's heart troubled him after he had numbered the people. So David said to the Lord, "I have sinned greatly in what I have done. But now, O Lord, please take away the iniquity of Your servant, for I have acted very foolishly."
David confesses he acted very foolishly in numbering the people.