وَالدَّلِيلُ عَلَى أَنَّ الصَّدَقَةَ إِذَا رَجَعَتْ إِلَى الْمُتَصَدِّقِ بِهَا إِرْثًا عَنِ الْمُتَصَدَّقِ عَلَيْهِ جَازَ لَهُ. وَالْفَرْقُ بَيْنَ مَا يَمْلِكُهُ الرَّجُلُ مِنَ الصَّدَقَةِ إِرْثًا وَبَيْنَ مَا يَمْلِكُهُ بِابْتِيَاعٍ أَوِ اسْتِيهَابٍ، إِذِ الْإِرْثُ يَمْلِكُهُ الْوَارِثُ أَحَبَّ ذَلِكَ أَمْ كَرِهَ، وَلَا يَمْلِكُ الْمَرْءُ مِلْكًا بِغَيْرِ نِيَّةٍ، وَأَخْبَرَ أَنَّهُ مِلْكٌ بِمَعْنَى مِنَ الْمَعَانِي سِوَى الْمِيرَاثِ.
And the evidence that charity, if it returns to the giver as inheritance from the one to whom it was given, is permissible for him. And the difference between what a man owns of charity as inheritance and what he owns by purchase or as a gift: inheritance is owned by the heir whether he likes it or dislikes it, and a person does not own something without intention, and it was stated that it is ownership in a sense other than inheritance.
It is narrated from Sayyiduna Abdullah bin Amr (may Allah be pleased with them both) that a man gave a piece of land in charity to his son. (That boy passed away), so the land returned to the man as inheritance. He informed the Messenger of Allah (peace and blessings be upon him) about this, so the Prophet (peace and blessings be upon him) said to him: "Your reward is established, and your ownership has also returned to you."
Explanation & Benefits
Shaykh Muhammad Farooq Rafi
Benefits:
Giving voluntary charity to one's children is permissible. And if the wealth is returned to the giver of charity and he accepts it, that is permissible.
Source: Sahih Ibn Khuzaymah: Commentary by Muhammad Farooq Rafee, Page: 2465