Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:16:124

The sabbath was only appointed for those who differed over it. And indeed, your Lord will judge between them on the Day of Resurrection concerning that over which they used to differ.  

The Sabbath was only prescribed, in other words, its consecration was made obligatory ˹only˺, for those who differed concerning it, with their prophet — these were the Jews. They were commanded to devote themselves solely to worship on Friday, but they said, ‘We do not want it’, and chose Saturday; consequently thereon ˹the observance of˺ it was enforced strictly on them; and lo! your Lord will judge between them on the Day of Resurrection, concerning that wherein they used to differ, with regard this matter ˹of the Sabbath˺, by rewarding the obedient and chastising the one who disobeyed by ˹his˺ violating its sanctity.
القرآن:١٦:١٢٤

إِنَّمَا جُعِلَ السَّبْتُ عَلَى الَّذِينَ اخْتَلَفُوا فِيهِ ۚ وَإِنَّ رَبَّكَ لَيَحْكُمُ بَيْنَهُمْ يَوْمَ الْقِيَامَةِ فِيمَا كَانُوا فِيهِ يَخْتَلِفُونَ  

{إنما جعل السبت} فرض تعظيمه {على الذين اختلفوا فيه} على نبيهم، وهم اليهود أمروا أن يتفرغوا للعبادة يوم الجمعة فقالوا: لا نريده واختاروا السبت فشدد عليه فيه {وإن ربك ليحكم بينهم يوم القيامة فيما كانوا يختلفون} من أمره بأن يثيب الطائع ويعذب العاصي بانتهاك حرمته.