Complex sentence: He left the army in 1824 and took residence in Moscow by 1825 he had been imprisoned in connection with the murder of man after a night of gambling.
Split into simpler sentences: He left the army in 1824 and took residence in Moscow. By 1825 he had been imprisoned in connection with the murder of man after a night of gambling.