This article provides an overview of this question, which is a crucial element of LDS doctrine.
Job 38:7 - Were the preexistent spirits of human beings among the "sons of God" who witnessed creation?
Jeremiah 1:5 - Did Jeremiah exist before he was born?
Acts 17:28-29 - Are human beings literally the offspring of God?