Hi @Irfan Mughal ,
For your requirement, you have to set up SharePoint on one domain and build trust relationship between two domains. Then you need to run the below PowerShell command:
stsadm -o setproperty -pn peoplepicker-searchadforests -pv "forest:DomainA.com;forest:DomainB.com,DomainB\login,password" -url "Your webapp url"
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.