You should connect the protocol SPI of USBasp to the microcontroller. These are MISO, MOSI, SCK and RESET.
Then connect an XTAL of 16MHz with 2 capacitors of 22pF to ground.
Finally, connect a resistor of 10K ohms of RESET to VCC.
Check: https://www.electronics-lab.com/burning-the-bootloader-on-atmega328-using-usbasp-programmer/