The World Federation One Stop Fiqh

Ruling 648

If a person does not find water after searching for it and loses hope in finding some and performs prayers with tayammum, and afterwards he realises that there was water in the place where he had searched, his prayer is valid.