Fiqh-us-Sunnah Volume 1, Purification and Prayer, Fiqh 1.066.
Section : One can get water, but fears that the prayer will be over by the time he gets it.
He can perform tayammum and pray, and does not need to repeat his prayer (after he gets water).