Narrated Abu 'Ubaidah:
The Messenger of Allah (ﷺ) said: 'When the Children of Isra'il fell into decline, a man among them would see his brother committing a sin, and prohibit them from it. The next day, what he saw him doing would not prevent him from eating with him, drinking with him, and associating with him. So Allah pitted their hearts against each other, and He revealed about them in the Qur'an, He said: Those among the Children of Isra'il who disbelieved were cursed by the tongue of Dawud and 'Eisa, son of Mariam. That was because they disobeyed and were ever transgressing.' And he recited until he reached: 'And had they believed in Allah, and in the Prophet, and in what has been revealed to him, never would they have taken them as friends; but many of them are rebellious (5:78-81).' He said: And Allah's Prophet (ﷺ) was reclining, so he sat up and said: 'No! Not until you take the hand of the wrong-doer and incline him toward the truth.'