1. For the operations of God's grace in him, v. 11. He prays that God would give him, (1.) An understanding heart, that he would inform and instruct him concerning his duty: "Teach me thy way, O Lord! the way that thou hast appointed me to walk in; when I am in doubt concerning it, make it plain to me what I should do; let me hear the voice saying, This is the way," Isa. xxx. 21. David was well taught in the things of God, and yet was sensible he needed further instruction, and many a time could not trust his own judgment: Teach me thy way; I will walk in thy truth. One would think it should be, Teach me thy truth, and I will walk in thy way; but it comes all to one; it is the way of truth that God teaches and that we must choose to walk in, Ps. cxix. 30. Christ is the way and the truth, and we must both learn Christ and walk in him. We cannot walk in God's way and truth unless he teach us; and, if we expect he should teach us, we must resolve to be governed by his teachings, Isa. ii. 3. (2.) An upright heart: "Unite my heart to fear thy name. Make me sincere in religion. A hypocrite has a double heart; let mine be single and entire for God, not divided between him and the world, not straggling from him." Our hearts are apt to wander and hang loose; their powers and faculties wander after a thousand foreign things; we have therefore need of God's grace to unite them, that we may serve God with all that is within us, and all little enough to be employed in his service. "Let my heart be fixed for God, and firm and faithful to him, and fervent in serving him; that is a united heart."