The title is from the expression "The best-laid plans of mice and men often go awry" which is based on a Robert Burns poem.
The plot of this episode is similar to the film "Dog Day Afternoon" which hit theaters two years after this premiered. Both are based on an actual heist from 1972.