What is the version of the following sentence with correct punctuation?

17 And when he came to Samaria he slew all that remained unto Ahab in Samaria till he had destroyed him according to the saying of the LORD which he spake to Elijah
17 And when he came to Samaria , he slew all that remained unto Ahab in Samaria , till he had destroyed him, according to the saying of the LORD, which he spake to Elijah .