Romans 6:17–18

17 But God be thanked that though you were slaves of sin, yet you obeyed from the heart that form of doctrine to which you were delivered. 18 And having been set free from sin, you became slaves of righteousness.