All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger.
It is incumbent upon you to wake up at the prescribed time to offer prayer in congregation and to adopt the proper means in order to wake up at the prescribed time of the prayer so as to reach the prayer. Upon waking up, leave the bed quickly so that you do not fall back asleep. Otherwise, you are considered negligent and sinful.
Allaah Knows best.