The quote, "An idle brain is the devil's workshop," comes from H.G. Bohn's "Handbook of Proverbs", published in 1855. Often, the word "brain" is substituted by the word "mind" and "workshop" is sometimes changed to "playground" in the modern daily use of the expression.
For the record it is not found in The Bible anywhere. I get the message though.