RULES RELATED TO FACING THE QIBLAH
1. If a person is at a place where he does not know in which direction the qiblah is, nor is there anyone whom he could ask, then he should think in his heart. Whichever direction his heart tells him to face, he should turn in that direction. If he offers his salaah without thinking, his salaah will not be valid. However, if, in this case where he did not think, he later learns that the direction in which he had offered his salaah was the correct direction, then his salaah will be valid. If there was a person whom he could ask, but because of hijaab and shyness, he did not ask and continued with his salaah, it will not be valid. In such cases, one should not feel shy, but should ask and then offer the salaah.
2. If there was no one who could show him the direction and he offered his salaah according to what his heart told him, and later he learnt that the direction in which he had offered his salaah was wrong; even then his salaah will be valid.
3. If a person was offering his salaah in the wrong direction and in his very salaah he learns that this is the wrong direction and that the correct direction is the other way, he should turn towards the qiblah in his very salaah. If after learning the correct direction, he did not turn towards the qiblah, his salaah will not be valid.
4. It is permissible for a person to offer salaah inside the Ka'bah. The person offering salaah inside the Ka'bah has the choice to face in whichever direction he wishes.
5. Both fard and nafl salaahs are permissible in the Ka'bah.
6. If the qiblah is not known and salaah is being offered in congregation, then the imam and those following him - all of them will have to act according to their conviction. If the conviction of a particular muqtadi is contrary to that of the imam, his salaah will not be valid behind that imam. This is so because according to him that imam is in error, and it is not permissible to follow someone while considering him to be in error. Therefore, in this case, the muqtadi will have to offer his salaah on his own according to his own conviction.