What is the ruling on someone who perform their prayer after finishing it because they believe they missed a Rak'a, a prostration, or that they did not perform it correctly (thinking their prayer was invalid)?
If he was sure that his prayer is void then reperforming it is an obligation along with figuring out the reason of invalidity so long as this wasn't out of uncertainty. 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 is the ruling of Sharia on woman shaking hands with non-Mahram man?
All perfect praise be to Allah the Lord of the Worlds. May His peace and blessings be upon our Prophet Mohammad and upon all his family and companions.
The Messenger of Allah (PBUH) said: "It is better to be stabbed in the head than touch a woman to whom one isn`t related." [Transmitted by Al-Tabarani /Al-Mo`jam Al-Kabir, Hadith No.16880]. Accordingly, it is forbidden for men to shake hands with non-Mahram* woman. And Allah The Almighty Knows Best.
* The women/men that you are allowed to marry. It includes all women/men other than mahram (including cousins).
Is it permissible for the woman who is observing Iddah after her husband`s death to sit with her daughter`s suitor, although their marriage contract hasn`t been concluded yet?
All perfect praise be to Allah the Lord of The Worlds. May His blessings and peace be upon our Prophet Mohammad and upon all his family and companions.
A suitor who hasn`t concluded the marriage contract isn`t a Mahram*, so he must be treated as such. And Allah The Almighty Knows Best.
* The period a woman must observe after the death of her husband or after a divorce, during which she may not marry another man.
* In Islam, a mahram is a member of one's family with whom marriage would be considered haram, concealment purdah, or concealment of the body with hijab, is not obligatory; and with whom, if he is an adult male, she may be escorted during a journey, although an escort may not be obligatory.