1 Samuel 28:17 in the King James Version
And the LORD hath done to him, as he spake by me: for the LORD hath rent the kingdom out of thine hand, and given it to thy neighbour, even to David:
Context
16 Samuel said, “Why then do you ask me, since the LORD has departed from you and has become your adversary?
17 The LORD has done to you as he spoke by me. The LORD has torn the kingdom out of your hand and given it to your neighbor, even to David.
18 Because you didn’t obey the LORD’s voice, and didn’t execute his fierce wrath on Amalek, therefore the LORD has done this thing to you today.