On the Computer you are preparing to sell, has the drive been wiped ?
Can the computer boot into Recovery Mode ?
If yes the link may fix this issue
How to reinstall macOS - Apple Support (CA)
Another option is ( 3 Keyboard combo ) Option Command and r >> Internet Recovery Mode
If Yes, do this over an Ethernet Cable connection
The spinning Globe will appear and depending on speed of you connection and Apple Servers can take time.
1 - It will present options >> Disk Utilities >> View >> View ALL attached Drives.
2 - Choose the Upper Most Drive ( not the volumes indented and list below ).
3 - Formatting for macOS 10.13 High Sierra and below requires HFS Journaled with the GUID Partition Map
4 - Once that is done >> backup out of Disk Utilities and choose install macOS.
5 - Follow the prompts and it may automatically reboot several time.
6 - Upon a final reboot - Setup Assist will present with the newer version
7 - Just Power Down via the Power Button.
8 - The next time the computer is turned On - setup Assist will be presented to the New Owner