You can see how the setting of the opportunity sales stage changes to Closed Lost, and the attempted save then fires the validation rule.
Here, the user must enter the reason that the opportunity was lost in the custom field created in this recipe called Reason Lost, as shown in the following screenshot: