Childrens book where a kid befriends a Phoenix (the mythical bird)

Anybody know the name and author of a children’s book where a kid befriends a phoenix? IIRC, at the end the phoenix had to make a funeral pyre for itself, and he had to put cinnamon sticks in it.

Sounds like The Phoenix and the Carpet

…by E Nesbit - author also of The Railway Children and Five Children and It.

David and the Phoenix I have a copy.

David and the Phoenix- I loved that book, and I haven’t seen a copy since I was a kid.

Yep, David and the Phoenix, one of my favorite books as a kid. I still have a copy somewhere.

Thanks all! Sounds like David and the Phoenix.