All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger.
It is permissible to perform a prayer with two intentions in some cases, like the prayer for a need [Salat Al-Haajah] and the prayer for salutation to the mosque is included in it, but in some other cases it is not permissible to combine two intentions in one prayer. For more benefit, kindly refer to Fatwa 82766.
For more benefit on how to perform Salat Al-Haajah, please refer to Fatwa 82384.