If sunrise is at 5:20 and we wake up 2-3 mins before fajr. And we pray our namaz after 5:20. Will the prayer be accepted? Kindly brief on this issue

If you did this purposely, then you have committed a sin.
The prayer is accepted as make up, but you will not get the thawab