Praying on an Airplane
Question :
Is it permissible to pray on an airplane if the time for prayer comes and it is still in the air?
Answer:
It is permissible to pray on an airplane, if it is feared that the time for it will elapse, such as the rising of the sun before the Fajr prayer, or its setting before the 'Asr prayer. If there is a place in which to perform the prayer standing, bowing and prostrating, as if one were on the ground, then one should do so. If one does not find a place, then one may pray in the seat, even by inclining his head, making the prostration lower than the bowing. If the prayer is one which may be combined with the one that follows it, such as Maghrib or Zuhr, then he should delay it, even if the time for the second prayer arrives, until the plane lands, then he should offer them together. However, if he fears that the time for both of the prayers will expire, such as when the sunset occurs before he has prayed Zuhr and 'Asr, or the light of dawn comes before he has prayed Maghrib and 'Isha', it is not permissible to delay them and he should pray them by inclining his head or the like, as mentioned (above).
Source:
Ibn Jibreen
Fatawa Islamiyah, Vol. 2 Page 434