Moses
Genesis 38:1ESV·traditional attribution

It happened at that time that Judah went down from his brothers and turned aside to a certain Adullamite, whose name was Hirah.

John Calvin Reformed @genevareformer

1. And it came to pass at that time, that Judah. Before Moses proceeds in relating the history of Joseph, he inserts the genealogy of Judah, to which he devotes more labor, because the Redeemer was thence to derive his origin; for the continuous history of that tribe, from which salvation was to be bought, could not remain unknown, without loss.

Matthew Henry Presbyterian @wholebiblehenry

Here is, 1. Judah's foolish friendship with a Canaanite-man. He went down from his brethren, and withdrew for a time from their society and his father's family, and got to be intimately acquainted with one Hirah, an Adullamite, Gen 38:1. It is computed that he was now not much above fifteen or sixteen years of age, an easy prey to the tempter.

Commenting on Genesis 38:1-11

John Gill Reformed Baptist @doctorgill

And it came to pass at that time,.... This some refer to the time of Jacob's coming from Padanaram into Canaan, soon after he came to Shechem, and before the affair of Dinah; but to this may be objected the marriage of Judah at an age that may seem too early for him, his separation from his brethren, and having a flock of his own...