A tenant could receive a 3day notice after the judicial foreclosure from the lender if you have been a non-paying tenant. (Cal. Civ. Proc. Code Â§ 1161(2)). Otherwise, if you have been paying rent, the 3 day notice to quit is for the owner. Therefore, you are legally allowed 90 days as long as you are not a child/parent/spouse of the borrower, not on a periodic tenancy and provided your tenancy was an arms-length transaction . Also, if the rent is not substantially lower than fair market rent, you are entitled to a 90-day notice. (P.L. 111-22.)
Also, if you are on a lease, you may be able to stay in the home for the full remainder of your lease but ONLY IF the new buyer does not plan on occupying. Meaning, if the time on your lease exceeds 90 days, you get that full time to stay. For example, if you have 4 months left on the lease, you don't have to vacate until those 4 months are up but again, THIS ONLY APPLIES if the new owner does not plan to occupy.
If the new buyer plans to occupy it, then the 90 days notice is given by either the foreclosing lender or the new buyer.
Now..is it from the bank? They offer a program called cash for keys. It isn't your fault the property foreclosed. They will offer you monies to help you move out and get a new place. So ask them.
If it is from the Owner....then ha ha ha..good try but to apple for him.