When Solomon saw it placed before him , he exclaimed , " This is by the grace of my Lord , to test whether I am grateful or ungrateful . Whosoever is grateful , it is for the good of his own self ; and whosoever is ungrateful , then surely my Lord is self-sufficient and generous . "