Augustine Of Hippo said this quote

True inner righteousness does not judge according to custom but by the measure of the most perfect law of God Almighty by which the mores of various places and times were adapted to those places and times.