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.
My father placed shares worth twenty dinars in one of the banks, and their value doubled to become five thousand dinars. When my father passed away, one of the scholars told us that it is permissible for us to take the money. What is the ruling on this money, considering that it comes from a bank and involves interest (Riba)?
Allah The Almighty Said (What means): "And if you repent, then for you is the principal of your wealth. You do not wrong, nor are you wronged." [Al-Baqarah/279]. This is the precautionary ruling regarding what you are asking about. You are entitled to the principal amount, and you should give the excess as charity to the poor and needy. If you are poor, you may take from it. And Allah The Almighty Knows Best.
Is buying and storing gold bars for profit permissible or prohibited?
Buying and storing gold bars for profit is permissible, and there is no harm in it. And Allah The Almighty Knows Best.
What is the ruling on taking a loan from an interest-based bank (a usurious bank) to buy an apartment for housing, noting that I am renting at a high amount relative to my income, and I am an employee? Also, considering that the conditions of Islamic banks are strict, and I cannot obtain the full amount from them, is it permissible to take a loan to purchase an apartment or not? May Allah reward you.
Usury (interest) is prohibited by Islamic law, and the Messenger of Allah, peace be upon him, cursed the one who consumes usury, the one who pays it, its recorder, and its witnesses. Whoever leaves something for the sake of Allah, Allah will compensate them with something better and greater, and Allah will provide relief after hardship. Needing a place to live does not permit taking a loan with interest. And Allah Knows Best.