mansabdars were nobles of the moghul empire who had been given rank by the moghul and were allowed to collect revenue from a specified number of estates and villages , allotted lands called jagirs , as a reward for service and loyalty .