John Gill's Exposition of the Whole Bible
Psalms 86 - Introduction
INTRODUCTION TO PSALM 86
A Prayer of David. The title is the same with the Seventeenth Psalm, and the subject of it is much alike: it was written by David, when in distress, and his life was sought after; very likely when he was persecuted by Saul, and fled from him; so Aben Ezra, Jarchi, and Kimchi: and as he was a type of Christ in his afflictions, as well as in his exalted state, it may not be unfitly applied to him, as it is by some interpreters. The Syriac inscription of it is,
"for David, when he built an house for the Lord; and a prophecy of the calling of the Gentiles; and moreover, a prayer of a peculiar righteous man.''
Theodoret thinks it predicts the siege of Jerusalem by the Assyrians, and Hezekiah's hope in God.