In 1Samuel, chapter 1. Verse 21 to 28, Hannah gives her son to the temple to live there always.
She had yearned for a son but now she gave him up. So where was the benefit to her? He would not presumably contribute to her life, have a life and marriage of his own or take care of his parents in...