The Prophet (may Allah's peace and blessings be upon him) mentioned the virtues of charity and dispraised asking people for money. He said that the person who spends and gives his wealth in charity and similar acts of obedience is better than the one who asks people for money.