Dry the bread: spread the cubes on a tray and leave out overnight, or toast at 300°F (150°C) for 15–20 minutes until dry but not browned.
Heat the oven to 375°F (190°C) and butter a 9x13-inch baking dish. Melt the butter in a large pan, add the onion and celery, and cook 8–10 minutes until soft.
Stir in the sage, thyme, salt and pepper and cook 1 minute more, until fragrant.
Tip the bread into a large bowl, pour over the butter-vegetable mixture, and toss. Add the beaten eggs, then the broth gradually — start with 2.5 cups — tossing until every cube is moistened and the mixture holds together when pressed.
Transfer to the dish, cover with foil, and bake 30 minutes. Uncover and bake 20–25 minutes more, until the top is golden and crisp.
Rest 10 minutes before serving — it sets as it cools and scoops cleanly.