#How did Jesus say one could know whether his teaching came from God, or whether Jesus was speaking from himself?

Jesus said if anyone wished to do the will on the person who sent Jesus, he would know about this teaching, whether it came from God or not. [7:17]