Where does “いただきます” come from?

Words derived from “いただきます