Napsal(a) Emanuel Swedenborg
Here is an excerpt from Swedenborg's "Arcana Coelestia" that helps explain the inner meaning of this chapter:
AC 5072. In the internal sense of this chapter the subject is continued of a state of temptations, by which even bodily things might be brought into correspondence. Bodily things properly so called are sensuous things, which are of two kinds, some being subordinate to the intellectual part, and some to the will part. Those which are subordinate to the intellectual part are represented by the butler of the king of Egypt, and those which are subordinate to the will part are represented by his baker; that the former are for a time retained, but the latter cast out, is represented by the butler returning to his place, and the baker being hanged. The rest will be plain from the series in the internal sense.