We use high‐resolution three‐dimensional X‐ray imaging to study hydrogen injection and withdrawal in the pore space of Bentheimer sandstone. The results are compared with a replicate experiment using nitrogen. We observe less trapping with hydrogen because the initial saturation after drainage is lower due to channeling. Remarkably we observe that after imbibition, if the sample is imaged again after 12 hr, there is a significant rearrangement of the trapped hydrogen. Many smaller ganglia disappear while the larger ganglia swell, with no detectable change in overall gas volume. For nitrogen, the fluid configuration is largely unchanged. This rearrangement is facilitated by concentration gradients of dissolved gas in the aqueous phase—Ostwald ripening, We estimate the time‐scales for this effect to be significant, consistent with the experimental observations. The swelling of larger ganglia potentially increases the gas connectivity, leading to less hysteresis and more efficient withdrawal.