Now the boy Samuel was ministering to the Lord under Eli. The word of the Lord was rare in those days; visions were not widespread.
At that time Eli, whose eyesight had begun to grow dim so that he could not see, was lying down in his room; the lamp of God had not yet gone out, and Samuel was lying down in the temple of the Lord, where the ark of God was. Then the Lord called, “Samuel! Samuel!” and he said, “Here I am!” and ran to Eli, and said, “Here I am, for you called me.” But he said, “I did not call; lie down again.” So he went and lay down. The Lord called again, “Samuel!” Samuel got up and went to Eli, and said, “Here I am, for you called me.” But he said, “I did not call, my son; lie down again.” Now Samuel did not yet know the Lord, and the word of the Lord had not yet been revealed to him. The Lord called Samuel again, a third time. And he got up and went to Eli, and said, “Here I am, for you called me.” Then Eli perceived that the Lord was calling the boy. Therefore Eli said to Samuel, “Go, lie down; and if he calls you, you shall say, ‘Speak, Lord, for your servant is listening.’” So Samuel went and lay down in his place.
Now the Lord came and stood there, calling as before, “Samuel! Samuel!” And Samuel said, “Speak, for your servant is listening.”
1 Samuel 3:1-10 (NRSV)