This is a paraphrased quote, in John 6:45, by Jesus from two Old Testament prophets, Isaiah and Jeremiah.
By the spirit of God, Isaiah said, "Your children shall be taught by the LORD". and Jeremiah, by the same spirit said, "I will put my law within them and write them on their hearts".