From what I understand about Shakespeare - which isn't a lot - there was no copyright law when he was writing. He sampled at will, and it wasn't seen as a bad thing.
Copsey, Rob. "Mike Posner interview: 'I've only had success when I'm not trying to'." Official Charts, Official Charts Company, 14 Apr. 2016.
Sourced by: Quote.org sourced