It is used when someone wants to remind another that they shouldn’t blame their tools for their mistakes. Instead, they should take responsibility for whatever they’ve done wrong.
It is an old, French proverb that dates back to at least the 13th century. The first recorded iteration of the phrase read: “mauveés ovriers ne trovera ja bon hostill.” This translates to: Bad workmen will never find a good tool.