When Solomon saw the throne placed firmly beside him , he cried out : " This is by the grace of my Lord so that He may test me whether I give thanks for ( His Bounty ) or act with ingratitude . Whoever is grateful is so to his own good ; and whoever is ungrateful , let him know that my Lord is Immensely Resourceful , Most Bountiful . "