In a large frying pan over medium heat, melt the butter and add the shallots and garlic. Cook until the shallots have softened, about 3 minutes. Add the mushrooms and thyme and cook until tender, about 4 minutes. Add a pinch of nutmeg and season with salt and pepper.