I am thinking of a conversation in Candide:
“The enormous riches which this rascal had stolen were sunk beside him in the sea, and nothing was saved but a single sheep. —You see, said Candide to Martin, crime is punished sometimes; this scoundrel of a Dutch merchant has met the fate he deserved. —Yes, said Martin; but did the passengers aboard his ship have to perish too? God punished the scoundrel, the devil drowned the others.”