Protection of Nightmares and Etiquette Adaab at sleep time Bukhari Hadith

Dua before sleeping and protection from nightmares
(There are Many Supplication and Recitation from the life of  our beloved Prophetﷺ at sleep time.Try to complete as much as you can. But it is better to make some of them with Madawmat/consistency. Prophet has praised who do good deeds with consistency. JAZAKALLAH)

1)    It is Sunnah to join both hands, read the last three Surahs of the Quran (Qul-Huwallah, Qul-Audhu Bi Rabbil Falaq, Qul-Audhu Bi Rabbin Nas) then blow on both hands and wipe the hands all over the body (starting from the face and front of the body). This should be done thrice. (Bukhari)

2)    Ayatul Kusri (2: 255) should also be read. (Bukhari)

3)    Then Recite:
اللّهُـمَّ بِاسْـمِكَ أَمـوتُ وَأَحْـيا
Transliteration: Allâhumma bismika amütu wa ahya.
Translation: O Allah, with Your name I die and live. (Bukhari)

4. The Prophet (S) also said: ‘Whoever recites the last two verses of Suurah Al-Baqarah at night, those two verses shall be sufficient for him.’
Muslim 1/554., Fathul-Bari.9/94, 

5. "When the Prophet (SAW) wanted to lie down to sleep, he used to place his right hand under his cheek and say..."
"اللَّهُمَّ قِنِي عَذَابَكَ يَوْمَ تَبْعَثُ عِبَادَكَ".
Allaahumma qinee 'athaabaka yawma tab'athu 'ibaadaka.
O Allah, save me from Your punishment on the Day that You resurrect Your slaves. 
Abu Dawud 4/311. .

6. "المٓ ۞ تَنْزِيلُ الْكِتَابِ" وَ "تَبَارَكَ الَّذِي بِيَدِهِ الْمُلْكُ"
                  Recite SurahAs-Sajdah) and Surah Al-Mulk) 
 At-Tirmithi, An-Nasa'i. 

Some netiquettes before Sleep
 (Taken from Dua Book Hisne Haseen By Allama Muhammad Al Jazri Ashafaee Page No 86)

1. To come on bed with Ablution
2.To whip the bed three times Properly using cloths.
3.Sleep on your right side. To put right hand below cheek (At least to start with it)