Vayikra5:1

וְנֶפֶשׁ כִּי־תֶחֱטָא וְשָׁמְעָה קוֹל אָלָה וְהוּא עֵד אוֹ רָאָה אוֹ יָדָע אִם־לוֹא יַגִּיד וְנָשָׂא עֲוֺנוֹ׃

And when a soul sins in that it hears the voice of an oath, and it is a witness, having seen or known, if it does not tell, it shall bear its guilt.

Vayikra 5:1

וְנֶפֶשׁ כִּי־תֶחֱטָא וְשָׁמְעָה

Vayikra / Leviticus 5:1 · Drash

Vayikra 5:1

וְנֶפֶשׁ כִּי־תֶחֱטָא וְשָׁמְעָה קוֹל אָלָה וְהוּא עֵד אוֹ רָאָה אוֹ יָדָע אִם־לוֹא יַגִּיד וְנָשָׂא עֲוֺנוֹ׃

And when a soul sins in that it hears the voice of an oath, and it is a witness, having seen or known, if it does not tell, it shall bear its guilt.

Drash דְּרָשׁ

Whoever is silent is a partner

Someone is insulted in front of you, and you stay silent: it is none of your business. And if they spoke that way about your father?

Midrash Tanchuma: whoever hears the Name blasphemed and does not tell shares the blasphemer's guilt, like a thief's partner. A person does not care when his fellow is cursed, but for his own father he is ready to give his life, and the Most High is our father. And more: one may not swear even to the truth, for two thousand towns were destroyed because of true oaths.

How Midrash Tanchuma (Buber) explain it

Midrash Tanchuma (Buber) And it is a witness, having seen or known

Of this it says: "Whoever is partner with a thief hates his own soul: he hears the oath and does not tell" (Mishlei / Proverbs 29:24). What made Scripture say of a person "And when a soul sins"? Only that he did not come and tell a sage: "So-and-so blasphemed the Name of the Holy One, blessed is He." Therefore he shares the blasphemer's sins, as it says: "if it does not tell, it shall bear its guilt" (Vayikra / Leviticus 5:1).

Therefore Shlomo (Solomon) said: "Whoever is partner with a thief hates his own soul." Just as the thief is caught and his partner is held liable with him, so one who hears blasphemy against the Holy One, blessed is He, and does not tell is held liable with the blasphemer.

And let no one say: "Am I to speak evil speech?" The Holy One, blessed is He, said: "Telling of any matter can be evil speech, except telling of the cursing of the Name." Why? When a person curses his fellow and someone else hears, that one does not care. But if he cursed his father in his presence, he is ready to give his life and says: "You cursed my father!" Moshe (Moses) said: "Is He not your Father who acquired you?" (Devarim / Deuteronomy 32:6).

Midrash Tanchuma (Buber) And when a soul sins

Our teachers said: one may not swear even to the truth. Why? Our teachers taught: let a person of Israel not be loose with vows, neither in jest nor to mislead another with an oath, saying that it is not an oath. There was a case at the King's Mountain: there were two thousand towns there, and all of them were destroyed because of true oaths. If this is so for one who swears to the truth, then for one who swears falsely all the more so. How did they act? A person would say to another: "I swear that I will go to such a place and eat and drink." And they would go, do so and fulfil their oath. Therefore it says: "And when a soul sins."

Takeaway

"Whoever is partner with a thief" is a verse of Proverbs (Mishlei / Proverbs 29:24). It has almost the same words as our verse: "oath" (אָלָה) and "does not tell" (יַגִּיד).
Evil speech (לָשׁוֹן הָרָע): the midrash says one may not stay silent about the cursing of the Name. Another version of Tanchuma says it outright: "in the cursing of the Name there is no evil speech" (Tanchuma, Vayikra 7).
"Is He not your Father" are words from the song of Moshe (Devarim / Deuteronomy 32:6).
Another version of Tanchuma has the word "vows" (בִּנְדָרִים) here, and the translation follows it (Tanchuma, Vayikra 7). The midrash text on this page prints "fences" (בִּגְדֵרִים).
The King's Mountain (הַר הַמֶּלֶךְ): the Talmud tells that King Yannai had a great many towns there (Gittin 57a).