If you are idle, be not solitary; if you are solitary be not idle.
Quoted in James Boswell, The Life of Samuel Johnson (1791) (letter to Boswell, 27 Oct. 1779)

If you are idle, be not solitary; if you are solitary be not idle.