Asalamualikum sheikh, i know that a person is rewarded according to his intentions. But what if someone has a mixed intention? For example, he serves his guest because Islam encourages to but at same time he wants a favor from him so he is doing it for that reason too

Ustadh AbdulAziz al-Haqqan
If the deed is for Allah and the worldly benefit after it, that is from Allah's reward for you and it does not harm you, and if it is for the worldly benefit alone then there is no share in it for you in the Hereafter.