For thou, O my God, hast told thy servant that thou wilt build him an house: therefore thy servant hath found in his heart to pray before thee.
You, God, have told your servant that you will build a home for them. So, the servant feels in their heart to pray to you.