Praying Before The End Of Time
As long as one is offering Salah within alotted time window, legally the Salah would be valid (with or without reason).