Sunan an-Nasa'i, Hadith 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.'"
أَخْبَرَنَا نُوحُ بْنُ حَبِيبٍ، قَالَ حَدَّثَنَا يَحْيَى بْنُ سَعِيدٍ الْقَطَّانُ، قَالَ حَدَّثَنَا قُدَامَةُ بْنُ عَبْدِ اللَّهِ، قَالَ حَدَّثَتْنِي جَسْرَةُ بِنْتُ دَجَاجَةَ، قَالَتْ سَمِعْتُ أَبَا ذَرٍّ، يَقُولُ قَامَ النَّبِيُّ صلى الله عليه وسلم حَتَّى أَصْبَحَ بِآيَةٍ وَالآيَةُ { إِنْ تُعَذِّبْهُمْ فَإِنَّهُمْ عِبَادُكَ وَإِنْ تَغْفِرْ لَهُمْ فَإِنَّكَ أَنْتَ الْعَزِيزُ الْحَكِيمُ } .
also referenced under: Book 11, Hadith 135 (In-Book) & Volume 2, Book 11, Hadith 1011 (DarusSalam)