But righteousness is to believe in Allah and the Last Day , in the angels and the Book , and the Prophets , and to give wealth however cherished , to kinsmen , to the orphans , to the needy , to the destitute traveler , and to the beggars , and to ransom the slave ; who establish their prayers and pay the obligatory charity ; who are true to their promise when they have promised . Who are patient in misfortune and hardship and during the time of courage .