More information on buying or selling occupied property (with renters in it) can be found here: https://masslandlords.net/resources/buying-and-selling-occupied-property/