DS9 episode called "The House of Quark", where he accidentally kills a drunk Klingon, is forced to marry the widow. The window's finances are a disaster, so he excitedly goes over all her finances, setting things in order (he enjoyed this part).
See @dejected_warp_core's comment for a more thorough set of events.