Unfortunately, there is no general correct answer to this question. After all, so many factors play a role in every sale and the circumstances are different every time. However, it is possible to determine the best time to sell your house, depending on the market at that particular moment.
But a much more important question is: "What moment is the best moment for you to sell?" So not necessarily for "the market. What impact does selling the house have on your life and what are the consequences if you sell? Are you looking for something new and want to move? To a house with a better location, a farmhouse in the country, a penthouse in the city? There is a story involved and it is as important as the situation on the housing market. A good real estate agent can work with any conditions on the market and get your house sold.
Finally, there is something to be said about the season. In general, spring is the best time to put a house or apartment up for sale, followed by September and October.