First, some little-known good news: you don’t actually have to be a first-time homebuyer to qualify. A first-time home buyer you must not have lived in another home owned by you or your spouse or common-law partner in the year of acquisition or any of the four preceding years.
The Home Buyers’ Plan (HBP) is a program that allows you to withdraw funds from your registered retirement savings plan (RRSPs) to buy or build a qualifying home for yourself or for a related person with a disability. You can withdraw up to $25,000 in a calendar year. You must qualify as a first-time home buyer, which generally means you and/or your spouse must not have owned a home in Canada for 4 years.
Your RRSP contributions must remain in the RRSP for at least 90 days before you can withdraw them under the HBP, or they may not be deductible for any year – see here http://www.cra-arc.gc.ca/E/pub/tg/rc4135/rc4135-e.html#P233_15310
Generally, you have to repay all withdrawals to your RRSPs within a period of no more than 15 years. You will have to repay an amount to your RRSPs each year until your HBP balance is zero. If you do not repay the amount due for a year, it will have to be included in your income for that year.
All the info here http://www.cra-arc.gc.ca/tx/ndvdls/tpcs/rrsp-reer/hbp-rap/menu-eng.html
And here is some info on how long the money must be in your RRSP before you withdraw it for the HBP. Let’s say a qualified first-time home-buyer contributed to his RRSP near the end of February. The buyer then finds a home with a willing seller, but is unable to get a possession date late enough to meet the following requirement: “Your RRSP contributions must remain in the RRSP for at least 90 days before you can withdraw them under the HBP, or they may not be deductible for any year.”
It turns out that the client actually has 30 days after possession to still take out his money from his/her RRSP and use it for the Home Buyer’s Plan.
Surprisingly, CRA does not care if the buyer uses that money to buy a car, go on vacation or spend it on anything else, as long as he/she buys a qualified home and is a first-time buyer.