The World Federation One Stop Fiqh

Ritual 58

If a person believes that he does not have the means for pilgrimage to be obligatory on him but performs it in obedience to the command of Allah intending it to be accepted and later learns that he was of means, his pilgrimage shall count as a valid one, i.e. there will be no need for a second pilgrimage.