The answer depends on the metric:
Traditional attribution assigns the Pentateuch (Genesis–Deuteronomy) to Moses—~125,000 words, roughly 20% of the Hebrew Bible. Adding Psalm 90 brings his total to ~125,500 words.
Paul authored 13 New Testament epistles (Romans–Philemon), more individual books than any other writer. His letters total ~50,000 words.
Modern scholarship debates Mosaic authorship of the entire Pentateuch, suggesting composite sources (J, E, D, P) compiled over centuries. Similarly, 6 of Paul's 13 letters are considered pseudepigraphical by many scholars. By traditional attribution and canonical word count, however, Moses remains the single largest contributor.