The Davidic Covenant is outlined in several places in the Hebrew, and is mentioned countless times in prophecy. Here are some key verses discussing the covenant; I will elucidate the “laws of the covenant” in terms of number, although there is no such official thing nor do I claim this is official (and I use it for reference only).
12 When your days are fulfilled and you lie down with your fathers, I will raise up your offspring after you, who shall come from your body, and I will establish his kingdom.
13 He shall build a house for my name, and I will establish the throne of his kingdom forever.2 Samuel 7:12-13
11 When your days are fulfilled to walk with your fathers, I will raise up your offspring after you, one of your own sons, and I will establish his kingdom.
12 He shall build a house for me, and I will establish his throne forever.
13 I will be to him a father, and he shall be to me a son. I will not take my steadfast love from him, as I took it from him who was before you,
14 but I will confirm him in my house and in my kingdom forever, and his throne shall be established forever.’” 1 Chronicles 17:11–14
… 15 who have kept with your servant David my father what you declared to him. You spoke with your mouth, and with your hand have fulfilled it this day.
16 Now therefore, O Lord, God of Israel, keep for your servant David my father what you have promised him, saying, ‘You shall not lack a man to sit before me on the throne of Israel, if only your sons pay close attention to their way, to walk in my law as you have walked before me.’
17 Now therefore, O Lord, God of Israel, let your word be confirmed, which you have spoken to your servant David.2 Chronicles 6:16
1 When David's time to die drew near, he commanded Solomon his son, saying,
2 “I am about to go the way of all the earth. Be strong, and show yourself a man,
3 and keep the charge of the Lord your God, walking in his ways and keeping his statutes, his commandments, his rules, and his testimonies, as it is written in the Law of Moses, that you may prosper in all that you do and wherever you turn,
4 that the Lord may establish his word that he spoke concerning me, saying, ‘If your sons pay close attention to their way, to walk before me in faithfulness with all their heart and with all their soul, you shall not lack[a] a man on the throne of Israel.’1 Kings 2:4
17 And as for you, if you will walk before me as David your father walked, doing according to all that I have commanded you and keeping my statutes and my rules,
18 then I will establish your royal throne, as I covenanted with David your father, saying, ‘You shall not lack a man to rule Israel.’2 Chronicles 7:18
The Lord swore to David a sure oath from which he will not turn back: “One of the sons of your body I will set on your throne.
12 If your sons keep my covenant and my testimonies that I shall teach them, their sons also forever shall sit on your throne.”Psalm 132:11-12
3j. Eternal covenant (Jeremiah 33:25)
Other references to the Davidic Covenant are found in;
The line cannot go through a woman (discrediting the genealogies in the NT). If it is not sufficient to point out that there will always be a son (implying the righteous son will hold the line of david and never a woman, since no woman will exist without some man alive to hold the throne, see 3,) that it will exclusively go through a man. Nevertheless the prophecy is explicitly clarified to require descendency in Judah – which requires patrilineal descent.