Romans 2:14

14 So, when Gentiles, who do not have the law, instinctively do what the law demands, they are a law to themselves even though they do not have the law.

Romans 2:14 In-Context

12 All those who sinned without the law will also perish without the law, and all those who sinned under the law will be judged by the law.
13 For the hearers of the law are not righteous before God, but the doers of the law will be declared righteous.
14 So, when Gentiles, who do not have the law, instinctively do what the law demands, they are a law to themselves even though they do not have the law.
15 They show that the work of the law is written on their hearts. Their consciences testify in support of this, and their competing thoughts either accuse or excuse them
16 on the day when God judges what people have kept secret, according to my gospel through Christ Jesus.
Holman Christian Standard Bible ® Copyright © 2003, 2002, 2000, 1999 by Holman Bible Publishers.  Used by permission.  All rights reserved.