Hadithcore
Musnad Ahmad, 423
da’if· Darussalam

It was narrated from `Uthman bin `Affan that the Prophet (ﷺ) said:

“Whoever knows that prayer is an obligatory duty will enter Paradise.`

حَدَّثَنَا عَبْد اللَّهِ، قَالَ حَدَّثَنَا عُبَيْدُ اللَّهِ بْنُ عُمَرَ، حَدَّثَنَا عُثْمَانُ بْنُ عُمَرَ، حَدَّثَنَا عِمْرَانُ بْنُ حُدَيْرٍ، عَنْ عَبْدِ الْمَلِكِ بْنِ عُبَيْدٍ، عَنْ حُمْرَانَ بْنِ أَبَانَ، عَنْ عُثْمَانَ بْنِ عَفَّانَ، رَضِيَ اللَّهُ عَنْهُ أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ مَنْ عَلِمَ أَنَّ الصَّلَاةَ حَقٌّ وَاجِبٌ دَخَلَ الْجَنَّةَ‏.‏

References1 variant
In-Book Reference
Book 4, Hadith 22