The one from the cupboard because it is warmer (has more thermal energy) than the one from the refrigerator. When a liquid becomes warmer, the solubility of a gas becomes lower. Therefore, there is already more CO2 in its gaseous state when the soda is warm.