That was kind and generous of you. You have not asked a question. If your question is whether you can claim him as a dependent-----only if he lived with you for the whole year and had less than $5050 of income not counting Social Security.
IRS interview to help determine who can be claimed:
https://www.irs.gov/help/ita/who-can-i-claim-as-a-dependent
You might be able to claim him as a qualifying relative for 2024 and get the $500 credit for other dependents.
Qualifying relative
When you add someone as a dependent, we'll ask a series of questions to make sure you can claim them. There may be other tax benefits you can get when you claim a dependent.
Related Information:
for 2023 you can not claim him as a dependent because he's not relayed to you and did not live with you for the entire year.
if he lived with you for all of 2024 and had a gross income of $5050 or more or if you did not provide over 50% of his support. you can not claim him as a dependent
even if you can claim him for 2024, you can not claim head of household fil9ing status because he is not a blood relative.
if you have other questions be specific.