The Home Buyers Plan (HBP) is a program that allows you to withdraw up to $35K from your Registered Retirement Savings Plan (RRSP) to buy or build a home, these funds need to be paid back within 15 years.
In order to be eligible for this program you must;
1) Be a first time home buyer
2) Written agreement to buy / build
3) Be a resident of Canada
4) Intend to occupy the home as your principal residence
See full details: What is the Home Buyers' Plan (HBP)?
Publication: Government of Canada Website