Go to "Settings" > "Devices" > "Bluetooth Devices" on your PS4, then put your PS5 controller into pairing mode by holding the "Create" and "PS" buttons until the light bar blinks.