The Samsung device can be configured to perform an automatic restart by setting the days of the week and the time of day. The device will automatically restart within one hour of the selected time.

Android 10 (One UI 2.0)
Step 1:  Open the  Settings
Step 2:  Tap on  Device care
Step 3:  Open the  menu
Step 4:  Tap on  Advanced
Step 5:  Tap on  Auto restart
Step 6:  Enable or disable  Auto restart
  1. Open the Settings
  2. Tap on Device care
  3. Open the menu
  4. Tap on Advanced
  5. Tap on Auto restart
  6. Enable or disable Auto restart

Samsung Instructions