Sayyiduna Ibn Abbas (may Allah be pleased with them both) said: the Messenger of Allah (peace and blessings be upon him) said: "For one of you to give it to his brother as a gift is better for him." And he (peace and blessings be upon him) did not forbid renting it out.
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 10838