A man who has had a bad day had his life turned around when someone gives him a little act of kindness.