Depending on the stove model and placement of the stove in the room, the distances to combustible materials vary. In the technical information and on the type plate of your stove you will find the information with the minimum distances to the side, to the front and to the rear.
What many people don't know: The stovepipe also has a specific fire safety distance that must be maintained. Sometimes you have to use a well-insulated, double-walled pipe with a small wall distance in order to be allowed to place the stove as close to the wall as the fire safety distance of the appliance allows!