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 wants to travel on the way to his appointed place, let him be diligent in his works. The knowledge that is given to us, enabling us to walk in it, is as follows. 2 ‘You shall love Him who made you; you shall fear Him who created you; you shall glorify Him who redeemed you from death. You shall be single-hearted and rich in spirit. You shall not cling to those who follow the path of death. You shall hate everything not pleasing to God. You shall hate all hypocrisy. You shall never abandon the Lord’s commandments.’ 3 ‘You shall not exalt yourself but be humble in all things. You shall not claim glory for yourself. You shall not devise evil against your neighbor. You shall not allow arrogance into your soul.’ 4 ‘You shall not commit fornication; you shall not commit adultery; you shall not corrupt young people. The word of God shall not come from you where there is any impurity. You shall not show partiality when reproving someone for a transgression. You shall be gentle; you shall be quiet; you shall be in awe of the words you have heard. You shall not hold a grudge against your brother.’ 5 ‘You shall not waver about whether something will be or not. You shall not use the Lord’s name carelessly. You shall love your neighbor more than your own life. You shall not kill a child by abortion, nor again kill it once it is born. You shall not withhold your hand from your son or daughter, but from childhood you shall 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