Sahih Muslim , Book 8, Hadith 3372 (USC-MSA) ⓘ
A hadith like this has been narrated on the authority of Habban with the same chain of transmitters (but with this alteration) that he said: " Allah has ordained whom he has to createuntil the Day of judgment."
حَدَّثَنِي مُحَمَّدُ بْنُ الْفَرَجِ، مَوْلَى بَنِي هَاشِمٍ حَدَّثَنَا مُحَمَّدُ بْنُ الزِّبْرِقَانِ، حَدَّثَنَا مُوسَى، بْنُ عُقْبَةَ عَنْ مُحَمَّدِ بْنِ يَحْيَى بْنِ حَبَّانَ، بِهَذَا الإِسْنَادِ فِي مَعْنَى حَدِيثِ رَبِيعَةَ غَيْرَ أَنَّهُ قَالَ " فَإِنَّ اللَّهَ كَتَبَ مَنْ هُوَ خَالِقٌ إِلَى يَوْمِ الْقِيَامَةِ " .
also referenced under: Book 16, Hadith 148 (In-Book) & Hadith 1438 (Reference)