It is narrated from Sayyiduna Abu Dharr (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) said to him: "What will you do when you are among people who delay the prayer from its proper time?" He replied: Allah and His Messenger know best. The Prophet said: "Perform the prayer at its (prescribed) time, and (if necessary) leave the mosque. Then, if the prayer is established and you are still in the mosque, perform the prayer with them."