Landlord selling

Have been happy in my little flat now landlords wants to sell has given me verbal 3 month i have asked for it in writing as im older lady late 50s i am having a stressful time due to a very bad divorce my credit history is im guessing very bad i fear i may become homeless any advise grafully recieved i have always paid rent on time all utilities up to date