(11) The Book of the Commencement of the Prayer
كتاب الافتتاح
(79) Chapter: Repeating a verse
(79) باب تَرْدِيدِ الآيَةِ
Sunan an-Nasa'i 1010 
Jasrah bint Dijajah said:
"I heard Abu Dharr say: 'The Prophet (ﷺ) stayed up all night repeating one verse. The verse was: 'If You punish them, they are Your slaves, and if You forgive them, verily, You, only You, are the All-Mighty, the All-Wise.'"
أَخْبَرَنَا نُوحُ بْنُ حَبِيبٍ، قَالَ حَدَّثَنَا يَحْيَى بْنُ سَعِيدٍ الْقَطَّانُ، قَالَ حَدَّثَنَا قُدَامَةُ بْنُ عَبْدِ اللَّهِ، قَالَ حَدَّثَتْنِي جَسْرَةُ بِنْتُ دَجَاجَةَ، قَالَتْ سَمِعْتُ أَبَا ذَرٍّ، يَقُولُ قَامَ النَّبِيُّ صلى الله عليه وسلم حَتَّى أَصْبَحَ بِآيَةٍ وَالآيَةُ ‏{‏ إِنْ تُعَذِّبْهُمْ فَإِنَّهُمْ عِبَادُكَ وَإِنْ تَغْفِرْ لَهُمْ فَإِنَّكَ أَنْتَ الْعَزِيزُ الْحَكِيمُ ‏}‏ ‏.‏
Grade :  Hasan (Darussalam)
Reference : Sunan an-Nasa'i 1010
In-book reference : Book 11, Hadith 135
English translation : Vol. 2, Book 11, Hadith 1011