Vayikra / Leviticus 7:12
אִם עַל־תּוֹדָה יַקְרִיבֶנּוּ וְהִקְרִיב עַל־זֶבַח הַתּוֹדָה חַלּוֹת מַצּוֹת בְּלוּלֹת בַּשֶּׁמֶן וּרְקִיקֵי מַצּוֹת מְשֻׁחִים בַּשָּׁמֶן וְסֹלֶת מֻרְבֶּכֶת חַלֹּת בְּלוּלֹת בַּשָּׁמֶן׃
If he offers it for thanksgiving, he shall offer with the thanksgiving sacrifice unleavened loaves mixed with oil, unleavened wafers smeared with oil, and well soaked fine flour, loaves mixed with oil.
Pshat פְּשָׁט
Thanks for a miracle
Rashi: the thanksgiving offering is brought by someone to whom a miracle happened: who crossed the sea, went through the desert, came out of prison or recovered. Four kinds of bread are brought with it, ten loaves of each kind, and it is eaten for only a day and a night.
How Rashi explain it
Remez רֶמֶז
Four breads of one soul
Shem MiShmuel: the three kinds of unleavened bread match the three parts of the soul that the Most High returned to the one who was saved. The leavened bread matches the image of the Almighty in a person, which by the power of the Torah joins them all. Pride is usually rejected, but pride in the ways of the Most High is desired, and so this bread is leavened.
How Shem MiShmuel explain it
Drash דְּרָשׁ
Bringing words
Midrash Tanchuma: whoever has a bull should bring a bull, and whoever has nothing should bring words. And they are accepted, for there is no return before the Most High higher than thanks and admission.
How Midrash Tanchuma explain it
Sod סוֹד
Thanks and admission
Ba'al Shem Tov: words can draw good if one speaks of what is tied to a person's trouble. Zohar: thanksgiving (תּוֹדָה) is tied to confession of sin (וְהִתְוַדָּה), and so the words about the loaves are written defectively, with a missing letter.
How Ba'al Shem Tov and Zohar explain it