Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:17:26

And give the relative his right, and ˹also˺ the poor and the traveler, and do not spend wastefully.  

And give the kinsman his due, of dutifulness and kindness, and the needy and the traveller ˹as well˺; and do not squander, by expending for ˹any purpose˺ other than in obedience to God.
القرآن:١٧:٢٦

وَآتِ ذَا الْقُرْبَىٰ حَقَّهُ وَالْمِسْكِينَ وَابْنَ السَّبِيلِ وَلَا تُبَذِّرْ تَبْذِيرًا  

{وآت} أعط {ذا القربى} القرابة {حقه} من البر والصلة {والمسكين وابن السبيل ولا تبذر تبذيرا} بالإنفاق في غير طاعة الله.