I've just been reading 1 Samuel 1 and 2 (through to 2:10) and was particularly struck by 1 Samuel 1:18b:
Then the woman went her way and ate and drank with her husband, and her countenance was sad no longer.
Hannah ('the woman') is deeply distressed because she doesn't have in children; a situation made worse as her husband has two wives and the other has a bunch of children and is always rubbing in that discrepancy.
In the text I was reading today she brings this distress to God, asks for Him to give her a son, and promises that she will then give that son back to God (i.e. he will live in the temple and serve there right from when he's weaned). Then comes the verse I quoted. After bringing her distress to God and asking for a specific solution, she's calm and no longer sad.