This is part of the sleep dua the Prophet taught Bara ibn Azib. It is the act of completely surrendering yourself to Allah before sleep — releasing all worries and placing every concern in His capable hands.