Sayyiduna Mahmud bin Labid (may Allah be pleased with him) narrates this saying of the Prophet (peace and blessings be upon him): "When Allah Almighty loves a people, He puts them to trial. Whoever shows patience will receive (the reward of) patience, and whoever wails and laments will have (to face the distress of) lamenting."
Ahmad recorded it, and its narrators are thiqat (trustworthy).
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الجنائز / 3736