The Messenger of Allah ﷺ came in to visit Ali and Fatimah one night and woke them for prayer. Then he returned to his house and prayed for a portion of the night. He heard no sound from us, so he came back to us, woke us up, and said, "Get up and pray."Ali said, I sat up rubbing my eyes and said, "By Allah, we only pray what has been decreed for us. Our souls are in the hand of Allah, so when He wishes to rouse us, He rouses us."The Messenger of Allah ﷺ turned away, striking his thigh with his hand and saying, "We only pray what has been decreed for us, we only pray what has been decreed for us. 'And man is ever, in most things, contentious'" [Kahf 18:54].
حدثنا يعقوب حدثنا أبي عن ابن إسحاق حدثني حكيم بن حكيم بن عباد بن حنيف عن محمد بن مسلم بن عبيد الله بن شهاب عن علي بن حسين عن أبيه عن جده
دخل علي رسول الله ﷺ وعلى فاطمة رضي الله عنها من الليل فأيقظنا للصلاة قال ثم رجع إلى بيته فصلى هويا من الليل قال فلم يسمع لنا حسا قال فرجع إلينا فأيقظنا وقال قوما فصليا قال فجلست وأنا أعرك عيني وأقول إنا والله ما نصلي إلا ما كتب لنا إنما أنفسنا بيد الله فإذا شاء أن يبعثنا بعثنا قال فولى رسول الله ﷺ وهو يقول ويضرب بيده على فخذه ما نصلي إلا ما كتب لنا ما نصلي إلا ما كتب لنا {وكان الإنسان أكثر شيء جدلا}
Its isnad is sahih, and it is a longer version of 575. Al-huwiyy, with the ha fatha and the waw kasra and the ya doubled, though the ha may also be pronounced with damma, means a long stretch of time, though it has also been said to be specific to the night.