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.
What is the ruling on paying a sum of money to Saudi citizen in return of having Saudi residence? It is worth noting that this transation is labelled as a "worker's visa" but I am not going to work as such only to facilitate having it?
Allah The Almighty Says (What means): "O you who have believed, fear Allah and be with the truthful" [At-Tawbah/119]. False statements contradict truthfulness, and it is not permissible to write them. A Muslim has the right to live in any Islamic country, and those who prevent him will be accountable before Allah about their action and the justification for the prohibition. And Allah Knows Best.
What is the ruling o associations (Whereas a person who have money buys a commodity for a person and and gets a profit on it)?
It is permissible for a person to buy a commodity for someone's else and have a profit/loss on it
Is it permissible for a person who broke fasting in Ramadan because of being sick to pay a ransom?
If there is hope for him/her to be cured, then he would be required to make up for the missed fasting days when he/she recovers, and no ransom is due on him/her. If his/her disease is incurable, then he/she would be required to pay a ransom for each missed fasting day, which is (600) grams of wheat, or rice. And Allah Knows Best.