Lie
The man told a lie. He felt guilty about it later. He confessed to telling the lie. His friend appreciated his honesty. The man felt better about himself.