The phase change that releases the most energy is deposition, when gas turns into a solid. It takes the absorption of energy to melt a solid into a liquid, and even more energy to vaporize the liquid into a gas. Hence, the reverse process (from solid to gas) will result in the greatest release of energy.