John 14:24 cannot contradict anything else that is in Scripture. So let's see what it REALLY says in light of ALL Scripture.
He that loveth me not keepeth not my sayings: and the word which ye hear is not mine, but the Father's which sent me.
This is totally consistent with these verses in the same chapter:
10 Believest thou not that I am in the Father, and the Father in me? the words that I speak unto you I speak not of myself: but the Father that dwelleth in me, he doeth the works.
11 Believe me that I am in the Father, and the Father in me: or else believe me for the very works' sake.
Now did you take note of what is stated above? Jesus is in the Father, and the Father is in Him. So the words He spoke were from the Father who was within the Son, and yet they were the words of Christ. But the Son is also within the Father. How do we *explain* the Mystery of God?
We do not. We simply believe it, and now that you know why the words of Jesus were the words of the Father, you must sincerely repent. Unless the Godhead is three Divine Persons, none of this could be reconciled.