Jesus was declared King before He appeared on this earth ----according to this scripture ----verses 12-17
2 Samuel 7:8-17
Amplified Bible, Classic Edition
8 So now say this to My servant David, Thus says the Lord of hosts: I took you from the pasture, from following the sheep, to be prince over My people Israel.
9 And I was with you wherever you went, and have cut off all your enemies from before you; and I will make you a great name, like [that] of the great men of the earth.
10 And I will appoint a place for My people Israel and will plant them, that they may dwell in a place of their own and be moved no more. And wicked men shall afflict them no more, as formerly
11 And as from the time that I appointed judges over My people Israel; and I will cause you to rest from all your enemies. Also the Lord declares to you that He will make for you a house:
12 And when your days are fulfilled and you sleep with your fathers, I will set up after you your offspring who shall be born to you, and I will establish his kingdom.
13 He shall build a house for My [a]Name [and My Presence], and I will establish the throne of his kingdom forever.
14 I will be his Father, and he shall be My son. When he commits iniquity, I will chasten him with the rod of men and with the stripes of the sons of men.
15 But My mercy and loving-kindness shall not depart from him, as I took [them] from Saul, whom I took away from before you.
16 And your house and your kingdom shall be made sure forever before you; your throne shall be established forever.
17 In accordance with all these words and all this vision Nathan spoke to David.
Read full chapter