Sunan an-Nasa'i, Book 20, Hadith 15 (In-Book)

It was narrated from Ali bin Husain, from his father, that: Hs grandfather Ali bin Abi Talib said: "The Messenger of Allah came in to Fatimah and I, one night and woke us up to pray, then he went back to his house and prayed for part of the night, and he did not hear any movement from us. He came back to us and woke us up, and said: 'Get up and pray.' I sat up, rubbing my eyes, and said: 'By Allah, we will only pray that which has decreed for us; our souls are in the hand of Allah (SWT) and if He wants to make us get up, He will make us get up.' The Messenger of Allah turned away, striking his hand on his thigh, saying: 'We will only pray that which Allah (SWT) has decreed for us! But man is ever more quarrelsome than anything.'"

أَخْبَرَنَا عُبَيْدُ اللَّهِ بْنُ سَعْدِ بْنِ إِبْرَاهِيمَ بْنِ سَعْدٍ، قَالَ حَدَّثَنَا عَمِّي، قَالَ حَدَّثَنَا أَبِي، عَنِ ابْنِ إِسْحَاقَ، قَالَ حَدَّثَنِي حَكِيمُ بْنُ حَكِيمِ بْنِ عَبَّادِ بْنِ حُنَيْفٍ، عَنْ مُحَمَّدِ بْنِ مُسْلِمِ بْنِ شِهَابٍ، عَنْ عَلِيِّ بْنِ حُسَيْنٍ، عَنْ أَبِيهِ، عَنْ جَدِّهِ، عَلِيِّ بْنِ أَبِي طَالِبٍ قَالَ دَخَلَ عَلَىَّ رَسُولُ اللَّهِ صلى الله عليه وسلم وَعَلَى فَاطِمَةَ مِنَ اللَّيْلِ فَأَيْقَظَنَا لِلصَّلاَةِ ثُمَّ رَجَعَ إِلَى بَيْتِهِ فَصَلَّى هَوِيًّا مِنَ اللَّيْلِ فَلَمْ يَسْمَعْ لَنَا حِسًّا فَرَجَعَ إِلَيْنَا فَأَيْقَظَنَا فَقَالَ ‏"‏ قُومَا فَصَلِّيَا ‏"‏ ‏.‏ قَالَ فَجَلَسْتُ وَأَنَا أَعْرُكُ عَيْنِي وَأَقُولُ إِنَّا وَاللَّهِ مَا نُصَلِّي إِلاَّ مَا كَتَبَ اللَّهُ لَنَا إِنَّمَا أَنْفُسُنَا بِيَدِ اللَّهِ ‏.‏ فَإِنْ شَاءَ أَنْ يَبْعَثَنَا بَعَثَنَا - قَالَ - فَوَلَّى رَسُولُ اللَّهِ صلى الله عليه وسلم وَهُوَ يَقُولُ وَيَضْرِبُ بِيَدِهِ عَلَى فَخِذِهِ ‏"‏ مَا نُصَلِّي إِلاَّ مَا كَتَبَ اللَّهُ لَنَا ‏{‏ وَكَانَ الإِنْسَانُ أَكْثَرَ شَىْءٍ جَدَلاً ‏}‏ ‏"‏ ‏.‏

sunnah.com