Thanks for asking a question on www.thisisyourbible.com
The story you are looking for concerns the child Samuel and is to be found in 1 Samuel chapter 3. He knew it wasn't his father calling him because he was in service in the temple. Rather he thought that Eli, the priest, was calling him.
I hope you have found this helpful.