1 Samuel 28:17

And the LORD has done for Himself as He spoke by me. For the LORD has torn the kingdom out of your hand and given it to your neighbor, David.

Surrounding context

28:16 Then Samuel said: "So why do you ask me, seeing the LORD has departed from you and has become your enemy?

28:17 And the LORD has done for Himself as He spoke by me. For the LORD has torn the kingdom out of your hand and given it to your neighbor, David.

28:18 Because you did not obey the voice of the LORD nor execute His fierce wrath upon Amalek, therefore the LORD has done this thing to you this day.

Translation and sources