حَدَّثَنَا مُحَمَّدُ بْنُ عَبْدِ اللَّهِ بْنِ نُمَيْرٍ، حَدَّثَنَا الْوَلِيدُ بْنُ بُكَيْرٍ أَبُو خَبَّابٍ، حَدَّثَنِي عَبْدُ اللَّهِ بْنُ مُحَمَّدٍ الْعَدَوِيُّ، عَنْ عَلِيِّ بْنِ زَيْدٍ، عَنْ سَعِيدِ بْنِ الْمُسَيَّبِ، عَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ، قَالَ خَطَبَنَا رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ فَقَالَ ‏"‏ يَا أَيُّهَا النَّاسُ تُوبُوا إِلَى اللَّهِ قَبْلَ أَنْ تَمُوتُوا وَبَادِرُوا بِالأَعْمَالِ الصَّالِحَةِ قَبْلَ أَنْ تُشْغَلُوا وَصِلُوا الَّذِي بَيْنَكُمْ وَبَيْنَ رَبِّكُمْ بِكَثْرَةِ ذِكْرِكُمْ لَهُ وَكَثْرَةِ الصَّدَقَةِ فِي السِّرِّ وَالْعَلاَنِيَةِ تُرْزَقُوا وَتُنْصَرُوا وَتُجْبَرُوا وَاعْلَمُوا أَنَّ اللَّهَ قَدِ افْتَرَضَ عَلَيْكُمُ الْجُمُعَةَ فِي مَقَامِي هَذَا فِي يَوْمِي هَذَا فِي شَهْرِي هَذَا مِنْ عَامِي هَذَا إِلَى يَوْمِ الْقِيَامَةِ فَمَنْ تَرَكَهَا فِي حَيَاتِي أَوْ بَعْدِي وَلَهُ إِمَامٌ عَادِلٌ أَوْ جَائِرٌ اسْتِخْفَافًا بِهَا أَوْ جُحُودًا بِهَا فَلاَ جَمَعَ اللَّهُ لَهُ شَمْلَهُ وَلاَ بَارَكَ لَهُ فِي أَمْرِهِ أَلاَ وَلاَ صَلاَةَ لَهُ وَلاَ زَكَاةَ لَهُ وَلاَ حَجَّ لَهُ وَلاَ صَوْمَ لَهُ وَلاَ بِرَّ لَهُ حَتَّى يَتُوبَ فَمَنْ تَابَ تَابَ اللَّهُ عَلَيْهِ أَلاَ لاَ تَؤُمَّنَّ امْرَأَةٌ رَجُلاً وَلاَ يَؤُمَّنَّ أَعْرَابِيٌّ مُهَاجِرًا وَلاَ يَؤُمَّ فَاجِرٌ مُؤْمِنًا إِلاَّ أَنْ يَقْهَرَهُ بِسُلْطَانٍ يَخَافُ سَيْفَهُ وَسَوْطَهُ ‏"‏ ‏.‏

It wasnarrated that Jabir bin ‘Abdullah said: “The Messenger ofAllah(PBUH) delivered a sermon to us and said: ‘O people! Repent toAllahbefore you die. Hasten to do good deeds before you becomepreoccupied(because of sickness and old age). Uphold the relationshipthatexists between you and your Lord by remembering Him a great dealandby giving a great deal of charity in secret and openly. (Then) youwill be granted provision and Divine support, and your condition willimprove. Know that Allah has enjoined Friday upon you in this placeofmine, on this day, in this month, in this year, until the Day ofResurrection. Whoever abandons it, whether during my lifetime orafterI am gone, whether he has a just or an unjust ruler, whether hetakesit lightly or denies (that it is obligatory), may Allah causehim tolose all sense of tranquility and contentment, and may He notblesshim in his affairs. Indeed, his prayer will not be valid, hisZakatwill not be valid, his Hajj will not be valid, his fasting willnot bevalid, and his righteous deeds will not be accepted, until herepents.Whoever repents, Allah will accept his repentance. No womanshould beappointed as Imam over a man, no Bedouin should beappointed as Imamover a Muhajir, no immoral person should beappointed as Imam over a(true) believer, unless that is forced uponhim and he fears his swordor whip.’” Translation Not Available

Book Ref: Sunan Ibn Majah Book 5 Hadith 1081
Web Ref:  Sunan Ibn Majah Vol 1 Book 5 Hadith 1081