Heat the oven to 350°F and butter a 9-by-13-inch baking dish. Cook the onion and celery in butter until tender, about 8 minutes. Stir in sage and thyme.
Toss the bread cubes with the vegetables. Whisk stock, eggs, salt and pepper, then pour over the bread and fold gently until evenly damp.
Transfer to the dish. Cover and bake for 25 minutes, then uncover and bake for about 20 minutes until the top is crisp and the center reaches 165°F.