The instructions in this verse closely match two teachings of Jesus (Matthew 5:44; Luke 6:27–28). Paul does not present these commands as direct quotations. However, he is almost certainly referring to the words of Christ.
These teachings may have been so well known that Paul did not need to name their source. Many ideas in Romans 12–13 closely reflect the teaching of Jesus.