He was badly injured during his escape and was arrested, but despite
Pip's best efforts to care for him, he grew weaker and died peacefully
of illness before the hanging, knowing that his daughter was still
alive. And the end of Compeyson was death.
Magwitch did not escape the punishment of the law, and in the end not
only was he arrested and imprisoned, but all his property was
confiscated. Compeyson's end was death. Pip told Magwitch before he died
that he had a daughter.