“When Ahithophel saw that his counsel was not followed, he saddled his donkey and went off home to his own city. He set his house in order and hanged himself, and he died and was buried in the tomb of his father.” – 2 Samuel 17:23 (ESV)
It is not enough to have intelligence and wisdom in a given situation, but there needs to be trust in the Lord. That means that God is in control, even if people do not listen your wise advice and suffer for it.