Because of your word, and according to your own heart, you have done this great thing and made it known to your servant.
In context
19And even this was a small thing in your eyes, Lord Yahweh — you have spoken also about the future of your servant’s house. Is this how you deal with anyone, Lord Yahweh? 20What more can David say to you? You yourself know your servant, Lord Yahweh. 21Because of your word, and according to your own heart, you have done this great thing and made it known to your servant. 22How great you are, Lord Yahweh! There is none like you, and there is no God besides you, as we have always heard with our own ears. 23And who is like your people Israel — the one nation on earth that God went out to redeem for himself as a people, making a name for himself and doing great and awesome things for your land, before your people, whom you redeemed for yourself out of Egypt, driving out nations and their gods?