The quote comes from an early (1720) Edwards sermon, which is now referred to as "The Way of Christian Holiness" (Isaiah 35:8). This is one of the messages he delivered while pastoring in New York City. It can be read, along with background information, at the Jonathan Edwards Center at Yale University.
[Holiness] is a conformity to Jesus Christ. Christ Jesus is perfectly conformed unto God, for he is God. He is his express image. Now Christ is nearer to us in some respects than God the Father, for he is our Mediator and is more immediately conversant with us.
John 1:18, "No man hath seen God at any time; the only begotten Son, who is in the bosom of the Father, he hath declared him."
Jesus Christ, he has been with us in the flesh and as one of us he appeared in the form of a servant, and we have seen his holiness brightly shining forth in all his actions. We have seen his holy life; we have a copy drawn, and an example set for us.
Now holiness is a conformity unto this copy: he that copies after Jesus Christ, after that copy which he has set us and which is delivered to us by the evangelists, is holy. He that diligently observes the life of Christ in the New Testament need not be at a loss to know what holiness is. Christ commands us to follow his example:
Matthew 11:29, "Take my yoke upon you and learn of me, for I am meek and lowly in heart, and ye shall find rest unto your souls."
Have you ever read the four Gospels, and did you not observe in the life of Christ wonderful instances of humility, love to God, love to religion; wonderful instances of zeal for God's glory, steadfastness in resisting temptations, entire trust and reliance on God, strict adherence to all his commands; astonishing instances of condescension, humility, meekness, lowliness, love to men, love to his enemies, charity and patience? Why, this is holiness. When we imitate Christ in these things, then are we holy, and not till then.