From: Rabbi Moshe Sofer
To: Rabbi Raphael
The Chasam Sofer addresses the parameters of the principle 'mitzvos lav leihanos nitnu' (mitzvos were not given for enjoyment) and its interaction with prohibitions of benefit, particularly in cases of simultaneous mitzvah fulfillment and forbidden pleasure.
Source: Shu"t Chasam Sofer OC §200