Found in the anonymous Yuan-dynasty zaju 《
碧桃花》(Bìtáohuā, Green Peach Blossom):
他将山盟海誓言 (he made vows by mountain and sea). The image — love as durable as the mountains' weight and the sea's vastness — became the standard romantic oath in Chinese literature.