Mishkat al-Masabih 113
Abud Darda' reported God’s messenger as saying, “God has preordained five things for every man He has created:
his period of life, his action, his lying down, his moving about, and his provision.” 

Ahmad transmitted it.
عَن أبي الدرداد قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: 
" إِنَّ اللَّهَ عَزَّ وَجَلَّ فَرَغَ إِلَى كُلِّ عَبْدٍ مِنْ خَلْقِهِ مِنْ خَمْسٍ: مِنْ أَجَلِهِ وَعَمَلِهِ وَمَضْجَعِهِ وَأَثَرِهِ وَرِزْقِهِ ". رَوَاهُ أَحْمَدُ