I have a quick question regarding about namaz timings: Does my fajr namaz count if I prayed at 4:58 am and sunrise was at 5:18 a.m.
Verily, As-Salaah (the prayer) is enjoined on the believers at fixed hours”
The prayer brother should be offered on time depending on where you live this you can check online based on your city or based on your local mosque prayer timetable. Prayer offered before its time is not valid. However, prayer offered after its appointed time for a valid reason for example you could not pray because you were in a lesson at school is valid.
Yes It is valid.
The time for Fajr prayer lasts from the onset of the true dawn until the sun starts to rise.
The Prophet (peace and blessings of Allaah be upon him) said: “The time for Fajr prayer is from the breaking of dawn, so long as the sun has not started to rise.” Narrated by Muslim, 612.
If a person offers this prayer during this time, he has prayed on time. Based on this, Fajr can be prayed 20 minutes before sunrise.