Assuming that you're buying a property with "bad credit", your lender will likely (or should) offer to sell you a homeowner's policy before your loan closes. If not, many insurers have programs for people with low FICO scores; there may be restrictions on the policy and the premium is likely higher. The bottom line: the insurers are more interested in the risk to the property than your personal credit; a policy that fits your needs is likely available.
Some potential good news: If, after closing on your property the lender finds that you don't have insurance on the property, they will (or should) offer to sell you a basic homeowner's policy to cover their interest in the property. This policy might be more expensive than what you could find on your own, but it's still insurance and it may meet your needs. Good luck!
Chat with our AI personalities