Increase your basis in your mutual fund, or your interest in a REIT, by the difference between the gain you report and the credit you claim for the tax paid.