Is it permissible to pay the Zakah (obligatory charity) for settling the debt of a deceased relative?
It is impermissible to pay the Zakah for settling the debt of the deceased since Zakah is paid to eligible recipients who are alive. As for the debts of the deceased, they are to be settled from the estate before dividing it amongst the heirs, but if the deceased didn`t leave an estate, then it is desirable for his/her heirs to settle those debts if they can afford them. And Allah Knows Best.
Is it permissible for one to masturbate in order not to commit fornication?
This is called committing the milder of the two evils such as eating a carcass in fear of death, and this happens when committing fornication is very likely to occur.
What should a person who was favored from Allah with a newborn, but couldn`t afford an Aqeeqah, do?
Aqeeqah (the sheep slaughtered on the seventh day from the child`s birth) is a desirable Sunnah for the financially able since Allah, The Exalted, charges not a soul beyond its capacity. Therefore, if the father couldn`t afford the Aqeeqah before the end of his wife`s confinement, then it isn`t due on him, and if he was able to afford it later on, then it is permissible, but if he didn`t until the child reached puberty, the latter can offer the Aqeeqah himself.
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.