Yahweh also said to tell the people, “If a judge orders any of you to tell in court something that you have seen or something that you heard someone say, if you refuse to say what you know is true, you must ◄pay a penalty/be punished► [MTY] for refusing to tell what you know.
Read & study T4T 5:1And if any one sin, in that he heareth the voice of adjuration, he being a witness, whether he hath seen or known, if he do not utter it , then he shall bear his iniquity.
Read & study ASV 5:1