He heals the brokenhearted and binds up their wounds.
God stirs us to praise Him for two reasons: His power and wisdom shown in governing all creation, and His special mercy to His chosen Church, restoring it when it falls, gathering it when scattered. The Psalm likely arose after Jerusalem's rebuilding, when the people saw God's hand return them from captivity.
AI summary
Commenting on Psalm 147:1-20
He healeth the broken in heart, and bindeth up their wounds. This the Holy Spirit mentions as a part of the glory of God, and a reason for our declaring his praise: the Lord is not only a Builder, but a Healer; he restores broken hearts as well as broken walls.
Here, I. The duty of praise is recommended to us. It is not without reason that we are thus called to it again and again: Praise you the Lord (Psa 147:1), and again (Psa 147:7), Sing unto the Lord with thanksgiving, sing praise upon the harp to our God (let all our praises be directed to him and centre in him), for it is good...
Commenting on Psalm 147:1-11