Crito
The dialogue takes place in Socrates' prison cell, where he awaits execution. He is visited before dawn by his old friend Crito, who has made arrangements to smuggle Socrates out of prison to the safety of exile. Socrates seems quite willing to await his imminent execution, and so Crito presents as many arguments as he can in order to persuade Socrates to escape. On a practical level, Socrates' death will reflect badly on his friends--people will think they did nothing to try to save him. Also, Socrates should not worry about the risk or the financial cost to his friends; these they are willing to pay, and they have also arranged to find Socrates a pleasant life in exile. On a more ethical level, Crito presents two more pressing arguments: first, if he stayed, he would be aiding his enemies in wronging him unjustly, and would thus be acting unjustly himself; and second, that he would be abandoning his sons and leaving them without a father.
Thirty Tyrants
In Plato's "Apology", Socrates recounts an incident in which the Thirty once ordered him (and four other men) to bring before them Leon of Salamis, a man known for his justice and upright character, for execution. While the other four men obeyed, Socrates refused, not wanting to partake in the guilt of the executioners. However, he did not attempt to warn or save Leon of Salamis. By disobeying, Socrates may have been placing his own life in jeopardy, and he claimed it was only the disbanding of the oligarchy soon afterward that saved his life: