King James Version (KJV)
Against thee, thee only, have I sinned, and done this evil in thy sight: that thou mightest be justified when thou speakest, and be clear when thou judgest.
Modern English
Against you, you only, have I sinned and done what is evil in your sight, so that you may be justified in your words and blameless in your judgment.
Hebrew
לְךָ֣ לְ֭בַדְּךָ חָטָ֑אתִי וְהָרַ֥ע בְּ֝עֵינֶ֗יךָ עָשִׂ֑יתִי לְמַ֥עַן תִּצְדַּ֥ק בְּדָבְרֶ֗ךָ תִּזְכֶּ֗ה בְשָׁפְטֶֽךָ׃
lka lbadka ḥaṭaʾtiy vharaʿ bʿeyneyka ʿashiytiy lmaʿan tiṣdaq bdabreka tizkeh bshapṭeka