David Hume stated that "were the disposal of human life so much reserved as the peculiar province of the Almighty that it were an encroachment on his right for men to dispose of their own lives, it would be equally criminal to act for the preservation of life as for its destruction." Here he was proving that if we prevent death from happening why can't we also let death happen. So Socrates had every right to drink the hemlock and make the decision to take his own life and commit suicide.
David Hume states in his article "Suicide" that "what is the meaning then of that principle, that a man, who, tired of life, and hunted by pain and misery, bravely overcomes all the natural terrors of death, and makes his escape from this cruel scene; that such a man, I say, has incurred the indignation of his creator, by encroaching on the office of divine provident; and disturbing the order of the universe?" Socrates, who drank the hemlock, is basically disturbing the order of the universe by taking his life to escape the horrors of being in jail. He is not following the order of the creator by committing suicide. This then deems suicide are a wrong in the words of David Hume.
The creator also did say according to Seneca that "this is the mean of which I approve, our life should observe a happy medium between the ways of a sage and the ways of the world at large; our life should observe a happy medium between the ways of a sage and the ways of the world at large; all men should admire it, but they should understand it also". This was relevant to Socrates because he understood that everyone life comes to an end and to never fear the unknown, giving him every right to decide that it was the time to drink the Hemlock.