Verse 27

We told Judah that his two sons had not lain with her. For this reason his descendants were established for another generation and would not be uprooted.