Arabic hadith text
حَدَّثَنَا قَبِيصَةُ بْنُ عُقْبَةَ، قَالَ‏:‏ حَدَّثَنَا سُفْيَانُ، عَنْ أَبِي إِسْحَاقَ، عَنِ الْبَرَاءِ قَالَ‏:‏ كَانَ النَّبِيُّ صلى الله عليه وسلم إِذَا أَرَادَ أَنْ يَنَامَ وَضَعَ يَدَهُ تَحْتَ خَدِّهِ الأَيْمَنِ، وَيَقُولُ‏:‏ اللَّهُمَّ قِنِي عَذَابَكَ يَوْمَ تَبْعَثُ عِبَادَكَ‏.‏
Translation

Al-Bara' said, "When the Prophet, may Allah bless him and granthim peace, wanted to go to sleep, he put his hand under his right cheekand said, 'O Allah, protect me from Your punishment on the Day you raiseup Your slaves.'"