"Many things happen between the cup and the lip" is first found in Robert Burton's The Anatomy of Melancholy (1621-1651) [REF].
It was used as well in William Makepeace Thackeray's Pendennis in 1850 [REF].