I had an RRSP in Canada, and I withdrew from it in 2021. How do I report this on the 1040?

I was a Canadian citizen, and moved to the US in 1995.  I became a US citizen in 2005.  I solely contributed to the RRSP while I was in Canada.  I reported the RRSP on the FBAR annually.  I withdrew some of the RRSP in 2021, and paid 25% Canadian Tax.  How and where do I report the money withdrawn, on the 1040, and where do I report the tax paid?