BT Meg 25b(6) :שבח הוא דאודי : (the story of Judah and Tamar) is praise since (Judah) confessed See the entire entry for ydy vb. C to give thanks; to confess