Berean Standard Bible (BSB)
But He was asking this to test him, for He knew what He was about to do.
World English Bible (WEB)
This he said to test him, for he himself knew what he would do.
Strong's King James
And{G1161} this{G5124} he said{G3004}{(G5707)} to prove{G3985}{(G5723)} him{G846}: for{G1063} he himself{G846} knew{G1492}{(G5715)} what{G5101} he would{G3195}{(G5707)} do{G4160}{(G5721)}.
The F.O.G *
(6) But this He said to test him for He knew what He intended to do.
The F.O.G Message *
Young's Literal Translation
and this he said, trying him, for he himself had known what he was about to do.