How to pair two BLE modules (nRF52832 ) as a master and slave?

Hello,

I want to integrate BLE into my project and replace the HC-05 BLC modules with the nRF52832 BLE modules or some other Bluetooth low power module but when I looked into the nRF52832 datasheet I couldn't find anything about configuring the chip to be a master or to connect to another slave device like the nRF52832
and the only ble solution I found was the RN-52 but it's too expansive.

Any suggestion?