I vowed to give a specific charity if a certain matter came to pass — what is the ruling on giving that charity before the matter is realised?
All praise is due to Allah, and peace and blessings be upon our master the Messenger of Allah ﷺ.
Fulfilling a vow (nadhr) is obligatory, in accordance with the word of Allah the Almighty: "And let them fulfil their vows." [Al-Ḥajj/ 29] And the saying of our master the Messenger of Allah ﷺ: "Whoever vows to obey Allah, let him obey Him; and whoever vows to disobey Him, let him not disobey Him." (Reported by al-Bukhārī.)
The Shāfiʿī scholars distinguished between a financial vow (nadhr mālī) and a bodily vow (nadhr badanī). They permitted the fulfilment of a financial vow to be brought forward — before the stipulated condition is met — but did not permit the same for a bodily vow, which may only be fulfilled after the condition has actually been realised.
Shaykh al-Islām Imām Zakariyyā al-Anṣārī, may Allah have mercy upon him, states: "It is permissible to bring forward the fulfilment of a financial vow before the condition stipulated in it is met — such as saying: 'If I am healed, I vow to free a slave' or 'to give such-and-such in charity' — just as it is permissible to pay zakāh in advance. This is unlike a bodily vow, such as fasting." [Asnā al-Maṭālib, vol. 4/P.246]
Imām al-Bājūrī, may Allah have mercy upon him, states: "Like expiation other than fasting, a financial vow — such as saying: 'If Allah heals my sick one, I vow to free a slave for the sake of Allah,' or 'If Allah heals my sick one, I vow to free a slave on the Friday following the recovery' — it is permissible to bring it forward before the recovery in the first case, and before the Friday following the recovery in the second case." [Ḥāshiyat al-Bājūrī ʿalā Sharḥ Ibn Qāsim, Vol.2/P.596] And Allah the Almighty knows best.
Should a person feel pleased, or have a virtuous vision after offering Istikhara (guidance prayer) in order to do what he/she had offered it for?
The result of the Istikhaarah is not necessarily that a person sees something (in his dream), or feels pleased, but the most important result of the Istikhaarah is whether a person is enabled to do a given matter or not.
What is the ruling on waiving a debt owed by a debtor and counting it toward zakāh?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah ﷺ.
Waiving a debt owed by a debtor, with the intention of counting it toward zakāh, does not fulfill the zakāh obligation. Rather, it constitutes an ordinary act of charity, for which Allah rewards the giver generously — since one of the conditions for the validity of zakāh is that the person paying it must form the intention of zakāh at the actual moment the wealth is paid out. In this case, the debt has already been established as a standing obligation upon the borrower, so it is not valid to simply redirect the intention toward zakāh after the fact.
It is preferable, instead, for the creditor to first collect the debt from the debtor, and then return to him the amount of money he is required to pay as zakāh — or a portion of it — if the debtor happens to fall under one of the eight categories that Allah, the Exalted, has commanded be given from zakāh.
It is stated in ‘Umdat as-Sālik, from the books of the Shāfi‘ī school: "If someone gives [money] to a poor person, stipulating that the recipient return it to him in payment of a debt owed to him, or says, 'I am making what you owe me into zakāh, so take it [as such]' — this is not valid. But if he gives it to him with the [unstated] intention that the recipient will use it to repay him, or says, 'Repay what you owe me, so that I may [then separately] give it to you as zakāh,' or the debtor himself says, 'Give it to me, so that I may [then] repay you with it' — this is valid, and there is no binding obligation for the recipient to actually fulfill this [informal understanding]." And Allah, the Exalted, knows best.
Is it permissible for one who sacrifices on behalf of another, with the latter's permission, to eat from the sacrifice?
It is permissible for someone who sacrificed on behalf of another with their permission to eat from it with their permission, and they stand in their place (act as their representative) in distributing it.
It is stated in Nihayat al-Muhtaj ila Sharh al-Minhaj (Vol.8/P.141): "And he—meaning the one sacrificing on his own behalf, provided he has not apostatized—has the right to eat from a voluntary sacrifice and his sacrificial gift; rather, it is recommended. As for an obligatory sacrifice, it is forbidden for him to eat from it, whether it was designated as such initially or as a liability in his dhimmah. And excluded by what has preceded is if he sacrifices on behalf of another, or if he apostatized, then it is not permissible for him to eat from it, just as it is absolutely impermissible to feed a disbeliever from it."(The text I found indicates the impermissibility of eating) ???
And it is stated in Hashiyat al-Jamal ‘ala Sharh al-Manhaj (Vol.5/P.262): "If a person offers a sacrifice on behalf of a living person with their permission, does he act as their representative in distributing it—on the grounds that permission to sacrifice is permission to distribute it—or does it depend on their explicit permission? This requires consideration, but the first view is not far-fetched." And Allah the Almighty knows best.