This psalm, like most, begins with a title. In this case it probably says something about the author. “Many psalms name an individual or a group with a prefixed lamed preposition. The most common by far is ledāwid (almost half the psalms)…. First, we note that the Hebrew preposition lamed can be taken in a number of different ways. Using ledāwid as our example, this theoretically could be rendered: of David or by David (indicating authorship), concerning David, in the tradition of David, for David, dedicated to David. The first meaning indicating authorship is the traditional way of understanding the phrase, and there are sufficient reasons to believe that the editors did intend to so attribute authorship. Certainly, the historical titles indicate that the early editors took the phrase that way.”1
1 O LORD, our Lord, how majestic is your name in all the earth! You have set your glory above the heavens.