Is prayer nullified by having thoughts while performing it?
Prayer isn`t nullified by having thoughts while performing it, provided that the praying person offers all of its pillars and meets all of its conditions. However, the reward decreases significantly in the absence of reverence since a praying person is rewarded according to the attentiveness of his/her heart during prayer.
A person vowed to slaughter a sacrificial animal. Is he permitted to eat from it?
If the vowed sacrificial animal was for the sake of Allah, and the one who vowed didn't specify then its meat should be distributed only among the poor and needy similar to distributing Zakah of Al-Fiter so neither him nor his dependents permitted to eat from; however if his vow was to made a banquet and invititing his relatives and others; then he must bring up as much as he can from its meat for them. In addition, he is permitted to eat from it in a reasonable basis. And Allah Knows Best.
Which hour coincides with the last third of the night?
This hour could be figured out by calculating the number of night hours which start at sunset, and end at dawn break, then the total is divided on three to get the result.
A person owns sheep or goats and occasionally feeds them from the grass in other people's orchards without the owners’ permission. Is it permissible to eat the meat of these animals if invited to do so? Is it permissible to purchase from these sheep whose owner feed them from people's orchards without their permission, and can one accept gifts from them, such as meat or milk?
Yes, it is permissible because the one who is accountable is their owner, and the cost of the grass on his accountability. In addition, in order to be on the safe side you should abstain from eating his products, because his sheep case is as if they were fed on impurities. And Allah Knows Best.