Messenger of Allah ﷺ took as a loan (the rest of the hadith is the same), but with this variation that he (the Holy Prophet) said: Good amongst the servants of Allah is he who is best in paying off the debt.
عَنْ أَبِي رَافِعٍ مَوْلَى رَسُولِ اللَّهِ ﷺ قَالَ اسْتَسْلَفَ رَسُولُ اللَّهِ ﷺ بَكْرًا بِمِثْلِهِ غَيْرَ أَنَّهُ قَالَ فَإِنَّ خَيْرَ عِبَادِ اللَّهِ أَحْسَنُهُمْ قَضَاءً