This stich starts with David talking about how miserable he is (דבקה לעפר נפשי and דלפה נפשי מתוגה) without ה׳'s words (כדברך). He has previously talked about בדרך עדותיך ששתי; this is the flip side of that. Then the volta introduces the idea of דבקות to ה׳, which is a common concept but hard to understand. How can one be “attached” to the infinite? Two answers are given. The first is the idea of imitatio Dei:
But that doesn’t seem to connect to learning Torah, דבקתי בעדותיך.
So why does connecting to Torah scholars count as connecting to G-d? In our pasuk, why does David want דבקתי בעדותיך and not ולדבקה בו? Rabbi Jack Abramowitz of the OU cited an idea from Techiya Levine, who is a teacher in Seattle. She asked why we, as Orthodox Jews, don’t seem to talk about G-d (or Hashem).
Her answer is surprising and in retrospect, obvious. As Rabbi Abramowitz says, “There is an idea that I read recently, which was a chiddush (novelty) to me, and I will fully credit the author when I get there. But my hope is for this idea to become so axiomatic that we don’t even think that it needs to be sourced.”
We use “the Torah” as a metonym for הקב״ה Himself. And it’s more than a literary convention; we feel it. We talk about what “the Torah says”. As David says here, דבקתי בעדותיך is the same thing as ולדבקה בו.
Now, Ms Levine doesn’t like this and wants us to talk about Hashem explicitly:
But to understand this פרק תהילים, and to understand the Jews' approach to the Torah as a whole, we need to realize that this identification, of Hashem with His Word, is very real and is fundamentally at the core of our relationship with Hashem. We will come back to this idea many times.