Your lender will supply you with a form called a "gift letter." The gift letter states the relationship between the parties, the address of the purchased property, the amount of the gift, and sometimes the source of the funds used to make the gift. The gift letter also clearly states that the funds are a gift and not required to be repaid. You and the person providing the gift will have to sign the letter.
With most lenders, the donor will have to also provide evidence that they have the ability to make the gift. This can be in the form of a bank or stock statement to show they have the funds available. You should also make a copy of the check used to make the gift and keep a copy of the deposit receipt when you deposit the gift funds into your bank account or escrow.