The words "the words" are a metonym for what the woman said. Alternate translation: "heard the woman tell what she and the other woman had done" (See: [[rc://en/ta/man/translate/figs-metonymy]])
The king ripped his outer garment to show his distress. Alternate translation: "he tore his clothes in grief" (See: [[rc://en/ta/man/translate/translate-symaction]])
By wearing sackcloth even for his undergarments, the king showed that he was very sad and upset. Alternate translation: "he had sackcloth underneath his outer garment, against his skin" or "he was wearing sackcloth underneath his robe because he was very upset" (See: [[rc://en/ta/man/translate/translate-symaction]])