كتاب المساقاة
22  
The Book of Musaqah
(5)
Chapter: If a man finds what he sold with the purchaser, who has become bankrupt, then he has the right to take it back
(5)
باب مَنْ أَدْرَكَ مَا بَاعَهُ عِنْدَ الْمُشْتَرِي وَقَدْ أَفْلَسَ فَلَهُ الرُّجُوعُ فِيهِ ‏‏
Sahih Muslim 1559 e

This hadith has been narrated on the authority of Qatada with the same chain of transmitters (but with a change of these words):

" He is more entitled to get it than any other creditor."
وَحَدَّثَنِي زُهَيْرُ بْنُ حَرْبٍ، حَدَّثَنَا إِسْمَاعِيلُ بْنُ إِبْرَاهِيمَ، حَدَّثَنَا سَعِيدٌ، ح وَحَدَّثَنِي زُهَيْرُ بْنُ حَرْبٍ، أَيْضًا حَدَّثَنَا مُعَاذُ بْنُ هِشَامٍ، حَدَّثَنِي أَبِي كِلاَهُمَا، عَنْ قَتَادَةَ، بِهَذَا الإِسْنَادِ ‏.‏ مِثْلَهُ وَقَالاَ ‏ "‏ فَهُوَ أَحَقُّ بِهِ مِنَ الْغُرَمَاءِ ‏"‏ ‏.‏
Reference : Sahih Muslim 1559e
In-book reference : Book 22, Hadith 30
USC-MSA web (English) reference : Book 10, Hadith 3786
  (deprecated numbering scheme)