It is narrated from Sayyiduna al-Nu'man bin Bashir (may Allah be pleased with him): I heard the Messenger of Allah (peace and blessings be upon him) say: "When one of you is going to sleep and has the intention in his heart to pray at night (tahajjud), let him keep a handful of earth beside him. Then, when he wakes up, let him take a handful with his right hand and throw it to his left side."
Imam Abu Ya'la recorded it, and its chain is technically da'if (weak) because of the weakness of Ayyub bin Utbah.