Romans 6:16-18

16 Do you not know that to whom you yield yourselves [as] slaves for obedience, you are slaves to him whom you obey; whether it is of sin to death, or of obedience to righteousness.

17 But thanks [be] to our God that you were the slaves of sin, but you have obeyed from [the] heart that form of doctrine to which you were delivered.

18 Then being made free from sin, you became the slaves of righteousness.