For our transgressions are multiplied before You, and our sins testify against us. Our transgressions are indeed with us, and we know our iniquities: – Isaiah 59:12
In many cases persons violating the law of God have hoped to cover their transgression by secrecy. They have done the deed in darkness. They hope that no ear of man heard their footfall, or listened to their speech… So was it with Achan. I dare say he took the wedge of gold and the Babylonish garment, mid the confusion of the battle, and hid it when his comrades seemed too much engaged to notice so trivial an affair. While they were rushing over the fallen walls of Jericho, amidst the debris and the dust, he might be unmolested; and then, in the dead of night, while they slept, he turned the sod of his tent, dug into the earth, and buried there his coveted treasure. All looks right, to his heart’s content. He has smoothed it down, and spread his carpet over the grave of his lust. Little did he reckon of the Omniscient eye. Little did he count on the unerring lot that would come home to the tribe of Judah, to the family of the Zarhites, to the house of Zabdir, and, at last, to the son of Carmi, so that Achan himself would have to stand out confessed as a traitor-a robber of his God. Men little know the ways in which the Almighty can find them out, and bring the evidence that convicts, out of the devices that were intended to cover their sin.
There are those who have got a sin, if not a lie in their right hand, yea, a lie in their heart, and it is eating into their very life. They dare not confess it. If they would confess it to their God, and make restitution to those whom they have offended, they would soon come to peace; but they vainly hope that they can cover the sin, and hide it from the eyes of God and man. He that covereth his sin in this fashion shall not prosper. ~ C.H. Spurgeon
https://www.blueletterbible.org/Comm/spurgeon_charles/sermons/3500.cfm