Amidst the story of the brothers selling Yosef as a slave, his ending up in Mitzrayim in the home of Pontiphar, his subsequent imprisonment and eventual meteoric rise to the position of Viceroy — 2nd only to Pharoah, is the story, conveyed in thumbnail below, of Yehudah and Tamar.
We learn of Yehudah’s two sons who, unbeknownst to Yehudah, were evil and died after marrying Tamar after which Yehuda promised the 3rd son to Tamar but never delivered. We learn about the veiled Tamar who waited “many days” (Breish’t Perek 38, posuk 12) before hearing that Yehudah, who had been in mourning for the passing of his wife, had shed his mourning clothes and began going to watch the sheepshearers.