When about to sleep

The Prophet (sal-Allaahu 'alayhe wa sallam) would place his right hand under his cheek when about to sleep and supplicate:

اللّٰهُمَّ قِنِيْ عَذَابَكَ يَوْمَ تَبْعَثُ عِبَادَكَ

O Allah, protect me from Your punishment on the day Your servants are resurrected.' 

Allaahumma qinee 'athaabaka yawma tab'athu 'ibaadaka.

اللّٰهُمَّ

قِنِيْ

عَذَابَكَ

O Allah

protect me from

your punishment

يَوْمَ

تَبْعَثُ

عِبَادَكَ

on the day

you resurrect

your servants

Abu Dawud 4/311, Sahih At-Tirmizi 3/143.