Safely And Whereby in the KJV
2 verses of the King James Version have both "safely" and "whereby".
Jeremiah 23:6 In his days Judah shall be saved, and Israel shall dwell safely: and this is his name whereby he shall be called, THE LORD OUR RIGHTEOUSNESS.
Ezekiel 39:26 After that they have borne their shame, and all their trespasses whereby they have trespassed against me, when they dwelt safely in their land, and none made them afraid.