A baby can be inconsolable when he misses his mother. One father in San Francisco, however, found a way to comfort his wailing infant.

A 3-month-old baby immediately calmed down after he smelled his mother's dirty shirt, the Daily Mail reported.

“I was watching him one day while mom was running errands and he got real fussy,” the father wrote online. “Another dad-friend of mine suggested placing one of mom's dirty shirts from the hamper on his face, so he could recognize the smell and calm down.”

The results were surprising and immediate.

'I had no idea it would work so well,” the father said. “I hope this video is shared enough to help another dad out of a fussy situation with their little one.”