Is sleeping with your legs towards kabah a sin?

My father wouldn't let me put my bed in the direction of the kabah because he believes our masjid's imam. I have never even heard a hadith about it? Plz give some guidance. Also how to convince old people with such ingrained mindsets.