I Chronicles 17:2 Midrash

וַיֹּ֤אמֶר נָתָן֙ אֶל־דָּוִ֔יד כֹּ֛ל אֲשֶׁ֥ר בִּֽלְבָבְךָ֖ עֲשֵׂ֑ה כִּ֥י הָאֱלֹהִ֖ים עִמָּֽךְ׃ (ס)

And Nathan said unto David: ‘Do all that is in thy heart; for God is with thee.’

Read midrashic interpretation of I Chronicles 17:2: and classical rabbinic exegesis.