accredit (something) to (someone)
To attribute an action or achievement to someone. We did write that song together, but I accredit the catchy melody to my brother—that was all his idea. You have truly inspired your students, so we accredit this renewed interest in the school newspaper entirely to you, Mrs. Smith.
accredit something to someone
to assign or attribute a deed to someone; to assign or attribute praise to someone. (Often passive.) We can accredit this great success to Fred and his committee.