But He was asking this to test him, for He knew what He was about to do.
Berean Standard Bible (BSB)
This he said to test him, for he himself knew what he would do.
World English Bible (WEB)
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)}.
Strong's King James
(6) But this He said to test him for He knew what He intended to do.
The F.O.G
The F.O.G Message
and this he said, trying him, for he himself had known what he was about to do.
Young's Literal Translation