Your credit score reflects your ability to manage credit responsibly and pay bills on time, so when you sell a house, it could potentially impact your score. When the loan comes due and is paid off after selling the home, it often looks like an immediate loan payoff, which can temporarily lower your score while updating.
However, this shows that you could make payments on time and eventually pay off the loan in full—both signs of good credit management—which can improve your overall score in the longer term. A mortgage is generally good for your credit score if you make monthly payments on time and do not have substantial debt elsewhere. So, another important consideration is whether you are getting into a new mortgage after selling your house or just taking the proceeds to the bank.