Hi Maryjol,
Thank you for contacting us. We're glad to assist.
This range model does not require a gap from the back wall, as the range provides space for the plug at the bottom. For more details, please refer to pages 1 and 4 of the manual link below.
Installation manual
https://downloadcenter.samsung.com/content/EM/202406/20240611173416404/DG68-01624B-01_IM_NSI6DG9900SRAA_EN-CFR_240611_OK.pdf
Have a wonderful day.
-Kimberly