The rules for gift funds may vary based on the specific loan program and the lender's requirements. Check with your lender for more information. Meanwhile, on the following websites, you can find gift fund requirements for conventional, FHA, and VA loans.
Conventional loans Fannie Mae
Conventinal Freddie Mac
FHA loan
VA loan