Abu Hurayrah (may Allah be pleased with him) said: I heard the Prophet (peace and blessings be upon him) saying: "O Allah, any believing servant whom I rebuke, make that a means of drawing him near to You on the Day of Resurrection."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب النكاح / 13379