A man has been jailed for attempted murder after his wife was found in the bath with stab wounds.