Genesis 15:5
3 Abram added, “Since you have not given me a descendant, then look, one born in my house will be my heir!” 4 But look, the Lord’s message came to him: “This man will not be your heir, but instead a son who comes from your own body will be your heir.” 5 The Lord took him outside and said, “Gaze into the sky and count the stars—if you are able to count them!” Then he said to him, “So will your descendants be.” 6 Abram believed the Lord, and the Lord credited it as righteousness to him. 7 The Lord said to him, “I am the Lord who brought you out from Ur of the Chaldeans to give you this land to possess.”
1 Kings 3:8
6 Solomon replied, “You demonstrated great loyalty to your servant, my father David, as he served you faithfully, properly, and sincerely. You have maintained this great loyalty to this day by allowing his son to sit on his throne. 7 Now, O Lord my God, you have made your servant king in my father David’s place, even though I am only a young man and am inexperienced. 8 Your servant stands among your chosen people; they are a great nation that is too numerous to count or number. 9 So give your servant a discerning mind so he can make judicial decisions for your people and distinguish right from wrong. Otherwise no one is able to make judicial decisions for this great nation of yours.” 10 The Lord was pleased that Solomon made this request.
Notes and References
"... the promises that the land will belong to Abram‘s descendants for ever and that these descendants will be numberless as the dust of the earth look even further into the future. That the land will be Israel‘s everlasting possession is reaffirmed in 17:8; 48:4, and is the presupposition informing the jubilee year legislation and the inheritance laws (Leviticus 25:25–34; Numbers 36:5–9). The God-givenness of the land is a central theme of Deuteronomy (e.g., 3:18–21; 30:3–5) and the basis of the prophetic hope that Israel will return there after exile (e.g., Jeremiah 31:2–21). The uncountability of Abram‘s descendants is a perennial theme of Genesis: 15:5; 16:10; 28:14; 32:12. Balaam, the prophet hired by the king of Moab to curse Israel, said Israel was already beyond counting in his day (Numbers 23:10). Solomon said the same thing some centuries later (1 Kings 3:8), though of course both eras were famed for their censuses ..."
Wenham, Gordon J. Word Biblical Commentary: Genesis 1-15 (pp. 360-361) Word Books, 1987