It is narrated from Sayyiduna Umar (may Allah be pleased with him): "The Messenger of Allah (peace and blessings be upon him) was occupied in preparing an army until half the night had passed, or close to that time. Then he (peace and blessings be upon him) came out for the prayer and said: 'The other people have prayed and gone back, while you are still waiting for the prayer. Know that as long as you remain waiting for the prayer, you will continuously be counted as being in prayer.'"
The narrators of its chain are thiqat (trustworthy).