This is the couplet of Amin Hong Yingming in Chen Meigong's Story of the Deep Window.
Hong Yingming is the author of Caigen Tan, so he entered this sentence in Caigen Tan.
So the earliest source is: Caigen Tan.