Jesus said this to test him, because he himself knew what he was going to do.