If Solomon for wisdom prayed. J. Newton. [Lent.] First published in the Olney Hymns, 1779, Bk. i., No. 32, in 8 stanzas of 4 lines, as the second hymn on 1 Kings iii. 5, "Ask what I shall give thee." In its original form it is unknown to the hymnals; but stanzas v.-viii., as "And dost Thou say, Ask what thou wilt," is well known, and in extensive use. It appeared in this form in the Arminian Magazine, 1781, p. 231. It is given in many modern collections in Great Britain and America, and usually with slight alterations, which vary in different hymnals. In the Presbyterian Selection of Hymns, Philadelphia, 1861, it begins, "Lord, dost Thou say," &c.
--John Julian, Dictionary of Hymnology (1907)