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

It was narrated that Ibn Shihaab said: "Humaid bin Abdur-Rahman bin 'Awf told me that a man from among the companions of the Prophet (PBUH) said: 'I said, when I was on a journey with the Messenger of Allah (PBUH): By Allah (SWT), I am going to watch the prayer of the Messenger of Allah (PBUH) and see what he does. When he prayed 'Isha, he lay down for a long time. Then he woke up and looked toward the horizon and said: "Our Lord! You have not created (all) this without purpose" until he reached: "for You never break (Your) Promise." Then the Messenger of Allah (PBUH) reached across his bed and took a siwak from it, then he poured water from a vessel and cleaned his teeth. Then he stood and prayed until I said: He has prayed for as long as he has slept. Then he lay down until I said: He has slept as long as he prayed. Then he woke up and did the same as he had done the first time and said the same as he had said. The Messenger of Allah (PBUH) did that three times before Fajr.'" Translation Not Available

Book Ref: Sunan An Nisai Book 20 Hadith 1626
Web Ref:  Sunan An Nisai Vol 2 Book 20 Hadith 1627