Ed McBain's 87th Precinct novel "So Long As You Both Shall Live" (1976) has a very similar plotline. The Columbo episode "No Time to Die" mentioned in an earlier comment was based the Ed McBain novel.