Bamidbar5:7

וְהִתְוַדּוּ אֶת־חַטָּאתָם אֲשֶׁר עָשׂוּ וְהֵשִׁיב אֶת־אֲשָׁמוֹ בְּרֹאשׁוֹ וַחֲמִישִׁתוֹ יֹסֵף עָלָיו וְנָתַן לַאֲשֶׁר אָשַׁם לוֹ׃

they shall confess their sin that they have done, and he shall return what he is guilty of in full, and add a fifth to it, and give it to the one he wronged.

Bamidbar 5:7

וְהִתְוַדּוּ אֶת־חַטָּאתָם אֲשֶׁר

Bamidbar / Numbers 5:7 · Pshat

Bamidbar 5:7

וְהִתְוַדּוּ אֶת־חַטָּאתָם אֲשֶׁר עָשׂוּ וְהֵשִׁיב אֶת־אֲשָׁמוֹ בְּרֹאשׁוֹ וַחֲמִישִׁתוֹ יֹסֵף עָלָיו וְנָתַן לַאֲשֶׁר אָשַׁם לוֹ׃

they shall confess their sin that they have done, and he shall return what he is guilty of in full, and add a fifth to it, and give it to the one he wronged.

Pshat פְּשָׁט

Whom to confess to

A man took what was not his and swore he had not taken it. Then his conscience spoke. To whom must he tell the truth: to everyone around, or to the one he took from?

Rashi: "what he is guilty of" is the debt itself, which the man swore about, and it must be returned to the one he came to owe. HaKtav VeHaKabbalah: confession here is not announcing the sin in public but admitting it to the owner of the money. Only after such an admission is the fifth added and the guilt offering brought.

How Rashi and HaKtav VeHaKabbalah explain it

Rashi What he is guilty of, in full

This is the debt itself, which he swore about.

Rashi To the one he wronged

To the one he came to owe.

HaKtav VeHaKabbalah They shall confess

Some explain that the letter vav (ו) here opens the answer to the condition. In their words, regret in the heart is not enough, one must confess aloud before everyone. But this is not right: it is better not to announce one's sin in public, because that touches the honour of Heaven. These words are part of the condition itself. The meaning is: if he admits on his own to the owner of the money that he owes him what he earlier denied under oath, then he must add a fifth and bring a ram as the guilt offering spoken of next. So our teachers hold: if witnesses came and he stands by his denial, he pays only the debt itself, without the fifth. For the fifth together with the offering come for atonement, and they are brought only on one's own admission.

Takeaway

The law of one who took what was not his and swore falsely that he had not is already written in the book of Vayikra (Vayikra / Leviticus 5:21–25).
Rashi: it is repeated here for something new: the fifth and the guilt offering are brought only by one who admitted on his own, not by one convicted by witnesses (Rashi on Bamidbar / Numbers 5:6).