Didache 1:2
1 There are two Ways: one of Life and one of Death, and there is a significant difference between the two Ways. 2 The way of life is as follows: First, you should love the God who created you; secondly, love your neighbor as yourself. Treat others as you would want to be treated. 3 Now, the teaching behind these words is this: Bless those who curse you, pray for your enemies, and fast for those who persecute you. What credit is it to you if you love only those who love you back? Don't even the non-believers do the same? Instead, love those who hate you, and you will have no enemies. 4 Refrain from indulging in carnal and bodily desires. If someone strikes you on the right cheek, turn to them the other cheek also, and you will be perfect. If someone compels you to go one mile, go two. If someone takes your coat, offer them your shirt as well. If someone takes from you what belongs to you, do not refuse, even if you can.
Barnabas 19:1
Epistle of Barnabas1 This then is the way of light, if anyone desiring to travel on the way to his appointed place would be zealous in his works. The knowledge then which is given to us whereby we may walk therein is as follows. 2 Thou shalt love Him that made thee, thou shalt fear Him that created thee, thou shalt glorify Him that redeemed thee from death; thou shalt be simple in heart and rich in spirit; thou shalt not cleave to those who walk the way of death; thou shalt hate everything that is not pleasing to God; thou shalt hate all hypocrisy; thou shalt never forsake the commandments of the Lord. 3 Thou shalt not exalt thyself, but shalt be lowly minded in all things. Thou shalt not assume glory to thyself. Thou shalt not entertain a wicked design against thy neighbor; thou shalt not admit boldness into thy soul. 4 Thou shalt not commit fornication, thou shalt not commit adultery, thou shalt not corrupt boys. The word of God shall not come forth from thee where any are unclean. Thou shalt not make a difference in a person to reprove him for a transgression. Thou shalt be meek, thou shalt be quiet, thou shalt be fearing the words which thou hast heard. Thou shalt not bear a grudge against Thy brother. 5 Thou shalt not doubt whether a thing shall be or not be. Thou shalt not take the name of the Lord in vain. Thou shalt love Thy neighbor more than thine own soul. Thou shalt not murder a child by abortion, nor again shalt thou kill it when it is born. Thou shalt not withhold thy hand from thy son or daughter, but from their youth Thou shalt teach them the fear of God.
Notes and References
"... As for the details of the commandments themselves, Didache shows resonance with both the LXX-synoptic text and with the Barnabas-Two Ways text. Didache’s first commandment draws on the LXX-synoptic tradition by commanding “love God,” a term not present in Barnabas. Didache then adds on the term used in Barnabas, “the one who created you,” and continues with all of the LXX-synoptic material concerning which attributes one should use to love God. For the second commandment, Didache follows the LXX-synoptic tradition nearly exactly ..."
King, David D. M. Intertextuality and the Pericanonicity of the Didache: The Dependence and Commentary of Didache 1:2-6 on the Canonical Gospels of Matthew and Luke (pp. 1-28) Iliff School of Theology, 2012