(22) The Book of Musaqah
كتاب المساقاة
(25) Chapter: Salam (Payment in Advance)
(25) باب السَّلَمِ ‏‏
Sahih Muslim 1604 c 

Ibn Abu Najih has narrated a hadith like this with the same chain of transmitters, but he has not mentioned:

" for a definite period".
حَدَّثَنَا يَحْيَى بْنُ يَحْيَى، وَأَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ وَإِسْمَاعِيلُ بْنُ سَالِمٍ جَمِيعًا عَنِ ابْنِ عُيَيْنَةَ، عَنِ ابْنِ أَبِي نَجِيحٍ، بِهَذَا الإِسْنَادِ ‏.‏ مِثْلَ حَدِيثِ عَبْدِ الْوَارِثِ ‏.‏ وَلَمْ يَذْكُرْ ‏ "‏ إِلَى أَجَلٍ مَعْلُومٍ ‏"‏ ‏.‏
Reference : Sahih Muslim 1604c
In-book reference : Book 22, Hadith 159
USC-MSA web (English) reference : Book 10, Hadith 3908
  (deprecated numbering scheme)