Answered by Sayyidi Habib Umar bin Hafiz (may Allah protect him and benefit us by him)
What can I recite for insomnia?
Recite the following Prophetic dua before sleeping:
اللَّهُمَّ غَارَتِ النُّجُومُ و هَدَأَتِ العُيونُ و أَنْتَ حَيٌّ قَيُّومٌ لا تَأْخُذُكَ سِنَةٌ ولا نَوْمٌ يا حَيُّ يا قَيُّومُ أَهْدِىء لَيْلي و أَنِمْ عَيْنِي
Allahumma gharati’nnujum wa had`ati’l-`uyun wa Anta Hayyun Qayyum, la ta’khudhuka sinatun wa la nawm. Ya Hayyu ya Qayyum, ahdi’ layli wa anim `ayni
O Allah, the stars have set and the eyes are resting, but You are Living, Self-Existing. You are not overcome by slumber or sleep. O Living, O Self-Existing, make my night calm and my eyes sleep.
Also repeat verse 154 of Surat Al ‘Imran (3:154) 7 times.