What Old Testament passage lies behind this verse?

Revelation 3:19 (ESV)

19 Those whom I love, I reprove and discipline, so be zealous and repent.

In this verse Jesus is referencing Solomon’s words in Proverbs 3:12.